diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index d04f4c4f1d6..704028a3e73 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -1111,14 +1111,14 @@
+ marshal_call_after="ctx->GLThread.ListMode = mode;">
+ marshal_call_after="ctx->GLThread.ListMode = 0;">
@@ -3402,12 +3402,12 @@
+ marshal_call_after="_mesa_glthread_PopClientAttrib(ctx);">
+ marshal_call_after="_mesa_glthread_PushClientAttrib(ctx, mask, false);">