Skip to content

Commit 2795a84

Browse files
committed
spearmint: OpenGL2: Fix r_greyscale to apply to rgbGen colorwave
1 parent 3fb871d commit 2795a84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

code/renderergl2/tr_shade.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ static void ComputeShaderColors( shaderStage_t *pStage, vec4_t baseColor, vec4_t
759759
}
760760

761761
if (pStage->rgbGen == CGEN_CONST || pStage->rgbGen == CGEN_FOG
762-
|| pStage->rgbGen == CGEN_ENTITY || pStage->rgbGen == CGEN_ONE_MINUS_ENTITY)
762+
|| pStage->rgbGen == CGEN_ENTITY || pStage->rgbGen == CGEN_ONE_MINUS_ENTITY
763+
|| pStage->rgbGen == CGEN_COLOR_WAVEFORM)
763764
{
764765
// if in greyscale rendering mode turn all color values into greyscale.
765766
if(r_greyscale->integer)

0 commit comments

Comments
 (0)