mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: Add missing call to _mesa_unlock_debug_state(ctx); v2
cd724208d3 added a call to
_mesa_lock_debug_state(ctx) but wasn't unlocking the debug state.
This fixes a hang in glsl-fs-loop piglit test with MESA_DEBUG=context.
v2:
- Remove unrelated changes.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
9702f91366
commit
929fcee47e
1 changed files with 3 additions and 1 deletions
|
|
@ -1282,12 +1282,14 @@ _mesa_init_debug_output(struct gl_context *ctx)
|
|||
*/
|
||||
struct gl_debug_state *debug = _mesa_lock_debug_state(ctx);
|
||||
if (!debug) {
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
debug->DebugOutput = GL_TRUE;
|
||||
debug->LogToStderr = GL_TRUE;
|
||||
ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_DEBUG_BIT;
|
||||
}
|
||||
done:
|
||||
_mesa_unlock_debug_state(ctx);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue