summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2008-04-01 13:02:30 +0100
committerMichel Dänzer <[email protected]>2008-04-01 13:05:24 +0100
commitcc85573a9f3d976b70669a53403ce7355ad84394 (patch)
treef3d5d94c12cc02f127d9bbcfa87658e100147551 /src
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.
Diffstat (limited to 'src')
-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 e321b401e2d..1de3676bda6 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);