mesa: initialize DummyBufferObject's mutex
authorBrian Paul <brianp@vmware.com>
Mon, 7 Mar 2011 21:57:20 +0000 (14:57 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Mar 2011 21:58:39 +0000 (14:58 -0700)
The mutex's fields were all zeros.  That's OK on Linux, but not Windows.

NOTE: This is a candidate for the 7.10 branch.

src/mesa/main/bufferobj.c

index 35d92616f4560bc95dcca498e79ef9105bf1b795..44072fbc50ba114e2da35be9438c9a84c51a1695 100644 (file)
@@ -558,6 +558,7 @@ void
 _mesa_init_buffer_objects( struct gl_context *ctx )
 {
    memset(&DummyBufferObject, 0, sizeof(DummyBufferObject));
+   _glthread_INIT_MUTEX(DummyBufferObject.Mutex);
    DummyBufferObject.RefCount = 1000*1000*1000; /* never delete */
 
    _mesa_reference_buffer_object(ctx, &ctx->Array.ArrayBufferObj,