util: Fix surface usage

This commit is contained in:
Jakob Bornecrantz 2009-04-15 23:33:07 +02:00
parent 255c33d733
commit 5a118d4650

View file

@ -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;
}