diff options
author | Brian Paul <brianp@vmware.com> | 2011-03-07 14:57:20 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-03-07 14:58:39 -0700 |
commit | f4ca12c4f1fc249d0be8f228a638748609fcf696 (patch) | |
tree | 38541ab728f0d3cf8994a58eb4f8fe0794ab0848 | |
parent | ce6f16d382dc76fd77064c6ce04ca6cc18cdfcef (diff) |
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.
-rw-r--r-- | src/mesa/main/bufferobj.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 35d92616f4..44072fbc50 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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, |