tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()

This can never be true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
This commit is contained in:
Roel Kluin 2010-01-05 13:40:40 -08:00 committed by Brian Paul
parent 9f544394c1
commit 766f3ccbda
1 changed files with 1 additions and 1 deletions

View File

@ -1314,7 +1314,7 @@ SetupDoubleTexEnvVoodoo3(GLcontext *ctx, int tmu0,
fxMesa->TexCombine[0].InvertRGB = FXFALSE;
fxMesa->TexCombine[0].InvertAlpha = FXFALSE;
if ((baseFormat0 == GL_RGB) && (baseFormat0 == GL_LUMINANCE)) {
if ((baseFormat0 == GL_RGB) || (baseFormat0 == GL_LUMINANCE)) {
fxMesa->AlphaCombine.Function = GR_COMBINE_FUNCTION_LOCAL;
fxMesa->AlphaCombine.Factor = GR_COMBINE_FACTOR_NONE;
fxMesa->AlphaCombine.Local = locala;