Turning off alpha test on GREATER than 0 and LESS than 255 wasn't safe. Only GEQUAL and LEQUAL, duh!

This commit is contained in:
Henrik Rydgard 2013-03-11 19:29:13 +01:00
parent 2b9a132440
commit 14b35c8d2d

View File

@ -46,10 +46,8 @@ static bool IsAlphaTestTriviallyTrue() {
case GE_COMP_ALWAYS:
return true;
case GE_COMP_GEQUAL:
case GE_COMP_GREATER:
if (alphaTestRef == 0)
return true;
case GE_COMP_LESS:
case GE_COMP_LEQUAL:
if (alphaTestRef == 255)
return true;