mesa: initialize DummyBufferObject's mutex
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.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user