Mesa (master): mesa: move _GenFlags = 0x0 to texgen loop

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 28 18:10:33 UTC 2009


Module: Mesa
Branch: master
Commit: c50c2e4e986024c728cc35e56e56250e947080a6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c50c2e4e986024c728cc35e56e56250e947080a6

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Feb 27 16:44:28 2009 -0700

mesa: move _GenFlags = 0x0 to texgen loop

---

 src/mesa/main/texstate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 3e6b09b..e25c9e7 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;
 




More information about the mesa-commit mailing list