diff options
author | Jakob Bornecrantz <[email protected]> | 2009-04-15 23:33:07 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-04-15 23:33:07 +0200 |
commit | 5a118d46507f4d551cba64014ac0dbbbad493742 (patch) | |
tree | 7aa6fe8a334d86b50dde7fb954ff0801e73e3ed7 /src/gallium/auxiliary | |
parent | 255c33d733cc4d2d7483d903513fdc9c34c90f0d (diff) |
util: Fix surface usage
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c index 8c2c2279150..85e443204e3 100644 --- a/src/gallium/auxiliary/util/u_surface.c +++ b/src/gallium/auxiliary/util/u_surface.c @@ -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; } |