mesa: initialize dummy framebuffer and renderbuffer mutexes
authorVladimir Vukicevic <vladimir@pobox.com>
Wed, 1 Sep 2010 14:54:21 +0000 (08:54 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 1 Sep 2010 14:54:23 +0000 (08:54 -0600)
See fd.o bug 29909.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c

index 9a84e5a79cff835aa3f14fd8c680f1d8decd3ddb..f80dd8599362ade9cc3dc46ec40ee71b8b5e93f0 100644 (file)
@@ -93,6 +93,8 @@ delete_dummy_framebuffer(struct gl_framebuffer *fb)
 void
 _mesa_init_fbobjects(GLcontext *ctx)
 {
+   _glthread_INIT_MUTEX(DummyFramebuffer.Mutex);
+   _glthread_INIT_MUTEX(DummyRenderbuffer.Mutex);
    DummyFramebuffer.Delete = delete_dummy_framebuffer;
    DummyRenderbuffer.Delete = delete_dummy_renderbuffer;
 }