Fixed a segfault introduced by Keith's pipeline changes.

This commit is contained in:
Felix Kuehling 2005-04-23 19:54:30 +00:00
parent 9b4536a654
commit 5c906924ed

View 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;