summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-04-15 23:33:07 +0200
committerJakob Bornecrantz <jakob@vmware.com>2009-04-15 23:33:07 +0200
commit5a118d46507f4d551cba64014ac0dbbbad493742 (patch)
tree7aa6fe8a334d86b50dde7fb954ff0801e73e3ed7 /src/gallium/auxiliary/util
parent255c33d733cc4d2d7483d903513fdc9c34c90f0d (diff)
util: Fix surface usage
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_surface.c4
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 8c2c227915..85e443204e 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;
}