From: Brian Paul Date: Fri, 27 Feb 2009 23:44:28 +0000 (-0700) Subject: mesa: move _GenFlags = 0x0 to texgen loop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c50c2e4e986024c728cc35e56e56250e947080a6;p=mesa.git mesa: move _GenFlags = 0x0 to texgen loop --- diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 3e6b09baa16..e25c9e732c3 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -550,7 +550,6 @@ update_texture_state( GLcontext *ctx ) texUnit->_Current = NULL; texUnit->_ReallyEnabled = 0x0; - texUnit->_GenFlags = 0x0; /* Get the bitmask of texture target enables. * enableBits will be a mask of the TEXTURE_*_BIT flags indicating @@ -609,6 +608,8 @@ update_texture_state( GLcontext *ctx ) for (unit = 0; unit < ctx->Const.MaxTextureCoordUnits; unit++) { struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; + texUnit->_GenFlags = 0x0; + if (!(ctx->Texture._EnabledCoordUnits & (1 << unit))) continue;