mesa/glthread: pass the function name to _mesa_glthread_restore_dispatch
[mesa.git] / src / mapi / glapi / gen / gl_marshal.py
index 5b35357ac548dc358f2e9c05f969f325dad70319..4fd2bc2a5b9143dee0b0f00d31cc0b1d8b2955f7 100644 (file)
@@ -249,7 +249,7 @@ class PrintCode(gl_XML.gl_print_base):
                 out('if ({0}) {{'.format(func.marshal_fail))
                 with indent():
                     out('_mesa_glthread_finish(ctx);')
-                    out('_mesa_glthread_restore_dispatch(ctx);')
+                    out('_mesa_glthread_restore_dispatch(ctx, __func__);')
                     self.print_sync_dispatch(func)
                     out('return;')
                 out('}')