aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/marshal.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-19 17:20:21 -0500
committerMarge Bot <[email protected]>2020-03-06 01:06:14 +0000
commitc920572f603b5e0ac062501593a4ed6b53bc8f40 (patch)
tree7097831a033b81260f1de3e7fdd5694a2234c985 /src/mesa/main/marshal.c
parent9dbf5ec9f7844dda9d2473a3168e3f8b0009a66d (diff)
glthread: simplify repeated function sequences in marshal_generated.c
Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
Diffstat (limited to 'src/mesa/main/marshal.c')
-rw-r--r--src/mesa/main/marshal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c
index b2428e5e7cd..e0d423a4aae 100644
--- a/src/mesa/main/marshal.c
+++ b/src/mesa/main/marshal.c
@@ -87,8 +87,7 @@ _mesa_marshal_Enable(GLenum cap)
debug_print_marshal("Enable");
if (cap == GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB) {
- _mesa_glthread_finish(ctx);
- _mesa_glthread_restore_dispatch(ctx, "Enable(DEBUG_OUTPUT_SYNCHRONOUS)");
+ _mesa_glthread_disable(ctx, "Enable(DEBUG_OUTPUT_SYNCHRONOUS)");
} else {
cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Enable,
sizeof(*cmd));