How could this stay undiscovered for so long? Unbelievable.

This commit is contained in:
Thilo Schulz 2011-02-06 20:06:03 +00:00
parent f03ee4b61c
commit 0afedc928c

View file

@ -1034,7 +1034,7 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
}
// decide which agens we can skip
if ( stage->alphaGen == CGEN_IDENTITY ) {
if ( stage->alphaGen == AGEN_IDENTITY ) {
if ( stage->rgbGen == CGEN_IDENTITY
|| stage->rgbGen == CGEN_LIGHTING_DIFFUSE ) {
stage->alphaGen = AGEN_SKIP;
@ -1824,7 +1824,7 @@ static qboolean CollapseMultitexture( void ) {
return qfalse;
}
}
if ( stages[0].alphaGen == CGEN_WAVEFORM )
if ( stages[0].alphaGen == AGEN_WAVEFORM )
{
if ( memcmp( &stages[0].alphaWave,
&stages[1].alphaWave,