From d415df207a60155525365f851fc19b994f709533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 25 May 2021 17:32:29 -0400 Subject: [PATCH] mesa: don't call FLUSH_VERTICES in glPopClientAttrib These states don't affect draws, so any enqueued Begin/End vertices don't need flushing. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/attrib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index b8bb8a153b4..e5672a9ee5a 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1505,7 +1505,6 @@ _mesa_PopClientAttrib(void) struct gl_client_attrib_node *head; GET_CURRENT_CONTEXT(ctx); - FLUSH_VERTICES(ctx, 0, 0); if (ctx->ClientAttribStackDepth == 0) { _mesa_error(ctx, GL_STACK_UNDERFLOW, "glPopClientAttrib");