#5863 - Use proper texture coordinates for alpha tested materials when doing depth prepass.

This commit is contained in:
SmileTheory committed 2013-01-07 21:29:19 -08:00
1 parent af77b93597
commit 3d311bdbe3
1 file changed
+10
+10
View File
@@ -1291,6 +1291,11 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
index |= LIGHTDEF_ENTITY;
}
if (pStage->stateBits & GLS_ATEST_BITS)
{
index |= LIGHTDEF_USE_TCGEN_AND_TCMOD;
}
sp = &pStage->glslShaderGroup[index];
}
else
@@ -1307,6 +1312,11 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
shaderAttribs |= GENERICDEF_USE_VERTEX_ANIMATION;
}
if (pStage->stateBits & GLS_ATEST_BITS)
{
shaderAttribs |= GENERICDEF_USE_TCGEN_AND_TCMOD;
}
sp = &tr.genericShader[shaderAttribs];
}
}