Commit a6164ab4 authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot

mesa: don't restore texture state into unbound textures in glPopAttrib

It was a typo, or thinko, sort of.

Fixes: d0e18550 - mesa: optimize saving/restoring bound textures for glPush/PopAttrib
Reviewed-by: Zoltán Böszörményi's avatarZoltán Böszörményi <>
Reviewed-by: Eric Anholt's avatarEric Anholt <>
Part-of: <mesa/mesa!8046>
parent 593dac80
......@@ -598,6 +598,7 @@ pop_texture_group(struct gl_context *ctx, struct gl_texture_attrib_node *texstat
* because we wouldn't get in this conditional block if it wasn't.
_mesa_BindTexture_no_error(savedObj->Target, savedObj->Name);
texObj = _mesa_get_tex_unit(ctx, u)->CurrentTex[tgt];
memcpy(&texObj->Sampler.Attrib, &savedObj->Sampler.Attrib,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment