summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-04-23 19:54:30 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-04-23 19:54:30 +0000
commit5c906924ed6ee664ba61764dd21bee36dce06d02 (patch)
treeac412d9e0f7923f68b89925341a6c31a8b416148 /src/mesa/drivers/dri/savage
parent9b4536a654774e3df330e9f238475aa20e30f7a3 (diff)
Fixed a segfault introduced by Keith's pipeline changes.
Diffstat (limited to 'src/mesa/drivers/dri/savage')
-rw-r--r--src/mesa/drivers/dri/savage/savagerender.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savagerender.c b/src/mesa/drivers/dri/savage/savagerender.c
index d7320ff884..9eda9a591e 100644
--- a/src/mesa/drivers/dri/savage/savagerender.c
+++ b/src/mesa/drivers/dri/savage/savagerender.c
@@ -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;