fixed bad texture border test (sometimes caused a segfault)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 May 2001 12:57:12 +0000 (12:57 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 May 2001 12:57:12 +0000 (12:57 +0000)
src/mesa/drivers/glide/fxdd.c

index c20ccebc5238b6b25756c0dcd93e9cbea1682bd5..70f8e639b1583a703907def03442babc774674be 100644 (file)
@@ -891,7 +891,7 @@ fxIsInHardware(GLcontext * ctx)
       if (ctx->Texture._ReallyEnabled & TEXTURE1_2D) {
         if (ctx->Texture.Unit[1].EnvMode == GL_BLEND)
            return GL_FALSE;
-        if (ctx->Texture.Unit[0]._Current->Image[0]->Border > 0)
+        if (ctx->Texture.Unit[1]._Current->Image[0]->Border > 0)
            return GL_FALSE;
       }