Fixed a segfault introduced by Keith's pipeline changes.
authorFelix Kuehling <fxkuehl@gmx.de>
Sat, 23 Apr 2005 19:54:30 +0000 (19:54 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Sat, 23 Apr 2005 19:54:30 +0000 (19:54 +0000)
src/mesa/drivers/dri/savage/savagerender.c

index d7320ff88484c42ff26637dcf4161859ad608bd8..9eda9a591e08eda2c9d04c3226183ffc43f498b5 100644 (file)
@@ -246,7 +246,8 @@ static GLboolean run_texnorm_stage( GLcontext *ctx,
       return GL_TRUE;
 
    for (i = 0 ; i < ctx->Const.MaxTextureUnits ; i++) {
-      if (VB->TexCoordPtr[i]->size == 4)
+      if (!ctx->Texture.Unit[i]._ReallyEnabled ||
+         VB->TexCoordPtr[i]->size == 4)
         /* Never try to normalize homogenous tex coords! */
         continue;