mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
ce6f16d382
commit
f4ca12c4f1
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue