gallium: Fencing fix.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 1 Apr 2008 12:02:30 +0000 (13:02 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 1 Apr 2008 12:05:24 +0000 (13:05 +0100)
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.

src/mesa/state_tracker/st_cb_flush.c

index e321b401e2d860c02d600dfdd2e4063d448788be..1de3676bda65a4f73c26ecc5b1e06f04cb60809d 100644 (file)
@@ -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);