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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10994>
This commit is contained in:
Marek Olšák 2021-05-25 17:32:29 -04:00 committed by Marge Bot
parent 11f41ba2f9
commit d415df207a

View file

@ -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");