Skip to content
Snippets Groups Projects
Commit f314a532 authored by Samuel Pitoiset's avatar Samuel Pitoiset
Browse files

mesa: do not trigger _NEW_TEXTURE_STATE in glActiveTexture()


This looks like useless because gl_context::Texture::CurrentUnit
is not used by _mesa_update_texture_state() and friends.

Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
parent c244c25c
No related branches found
No related tags found
No related merge requests found
...@@ -307,8 +307,6 @@ active_texture(GLenum texture, bool no_error) ...@@ -307,8 +307,6 @@ active_texture(GLenum texture, bool no_error)
} }
} }
FLUSH_VERTICES(ctx, _NEW_TEXTURE_STATE);
ctx->Texture.CurrentUnit = texUnit; ctx->Texture.CurrentUnit = texUnit;
if (ctx->Transform.MatrixMode == GL_TEXTURE) { if (ctx->Transform.MatrixMode == GL_TEXTURE) {
/* update current stack pointer */ /* update current stack pointer */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment