mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 16:28:04 +02:00
util: Fix surface usage
This commit is contained in:
parent
255c33d733
commit
5a118d4650
1 changed files with 2 additions and 2 deletions
|
|
@ -90,9 +90,9 @@ util_create_rgba_surface(struct pipe_screen *screen,
|
|||
return FALSE;
|
||||
|
||||
/* create surface / view into texture */
|
||||
*surfaceOut = screen->get_tex_surface(screen, *textureOut, 0, 0, 0, usage);
|
||||
*surfaceOut = screen->get_tex_surface(screen, *textureOut, 0, 0, 0, PIPE_BUFFER_USAGE_GPU_WRITE);
|
||||
if (!*surfaceOut) {
|
||||
screen->texture_destroy(*textureOut);
|
||||
pipe_texture_reference(textureOut, NULL);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue