mesa: don't call _mesa_set_draw_vao in glPushClientAttrib
Pushing states doesn't affect draws. 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:
parent
5195d848a0
commit
c1205a6b0f
|
@ -1391,9 +1391,6 @@ copy_array_attrib(struct gl_context *ctx,
|
|||
|
||||
/* skip ArrayBufferObj */
|
||||
/* skip IndexBufferObj */
|
||||
|
||||
/* Invalidate array state. It will be updated during the next draw. */
|
||||
_mesa_set_draw_vao(ctx, ctx->Array._EmptyVAO, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1454,6 +1451,9 @@ restore_array_attrib(struct gl_context *ctx,
|
|||
copy_array_attrib(ctx, dest, src, true);
|
||||
}
|
||||
|
||||
/* Invalidate array state. It will be updated during the next draw. */
|
||||
_mesa_set_draw_vao(ctx, ctx->Array._EmptyVAO, 0);
|
||||
|
||||
if (is_vao_name_zero || !src->VAO->IndexBufferObj ||
|
||||
_mesa_IsBuffer(src->VAO->IndexBufferObj->Name)) {
|
||||
_mesa_BindBuffer(GL_ELEMENT_ARRAY_BUFFER_ARB,
|
||||
|
|
Loading…
Reference in New Issue