From: Felix Kuehling Date: Sat, 23 Apr 2005 19:54:30 +0000 (+0000) Subject: Fixed a segfault introduced by Keith's pipeline changes. X-Git-Tag: mesa-7.8~9372 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c906924ed6ee664ba61764dd21bee36dce06d02;p=platform%2Fupstream%2Fmesa.git Fixed a segfault introduced by Keith's pipeline changes. --- diff --git a/src/mesa/drivers/dri/savage/savagerender.c b/src/mesa/drivers/dri/savage/savagerender.c index d7320ff..9eda9a5 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;