summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-04-01 13:02:30 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-04-01 13:05:24 +0100
commitcc85573a9f3d976b70669a53403ce7355ad84394 (patch)
treef3d5d94c12cc02f127d9bbcfa87658e100147551
parent2df9941368c807fb677d3d95a5c1dfffe719c26b (diff)
gallium: Fencing fix.
Make sure the struct pipe_fence_handle* we point st_flush() to is initialized to NULL, so winsys->fence_reference() doesn't try to unreference a random struct pipe_fence_handle* pointer.
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index e321b401e2..1de3676bda 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -105,7 +105,7 @@ static void st_glFlush(GLcontext *ctx)
void st_finish( struct st_context *st )
{
- struct pipe_fence_handle *fence;
+ struct pipe_fence_handle *fence = NULL;
st_gl_flush(st, PIPE_FLUSH_RENDER_CACHE, &fence);