It was a typo, or thinko, sort of.
Fixes:
d0e18550e26 - mesa: optimize saving/restoring bound textures for glPush/PopAttrib
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046>
* 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,