Fix depth test functions

This commit is contained in:
Luke Benstead 2019-11-30 10:06:46 +00:00
parent cdfb805dd9
commit e97dd466aa

View File

@ -62,17 +62,17 @@ static int _calc_pvr_depth_test() {
case GL_NEVER:
return PVR_DEPTHCMP_NEVER;
case GL_LESS:
return PVR_DEPTHCMP_GREATER;
return PVR_DEPTHCMP_GEQUAL;
case GL_EQUAL:
return PVR_DEPTHCMP_EQUAL;
case GL_LEQUAL:
return PVR_DEPTHCMP_GEQUAL;
return PVR_DEPTHCMP_GREATER;
case GL_GREATER:
return PVR_DEPTHCMP_LESS;
return PVR_DEPTHCMP_LEQUAL;
case GL_NOTEQUAL:
return PVR_DEPTHCMP_NOTEQUAL;
case GL_GEQUAL:
return PVR_DEPTHCMP_LEQUAL;
return PVR_DEPTHCMP_LESS;
break;
case GL_ALWAYS:
default: