Module: Mesa
Branch: master
Commit: f4ca12c4f1fc249d0be8f228a638748609fcf696
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4ca12c4f1fc249d0be8f228a638748609fcf696

Author: Brian Paul <[email protected]>
Date:   Mon Mar  7 14:57:20 2011 -0700

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.

---

 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 35d9261..44072fb 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,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to