GPU/HW: Use a larger epsilon for PowerVR

This commit is contained in:
Connor McLaughlin
2021-05-25 20:01:37 +10:00
parent df26792c19
commit f4242f390b
2 changed files with 13 additions and 6 deletions

View File

@ -91,10 +91,14 @@ std::string GPU_HW_ShaderGen::GenerateBatchVertexShader(bool textured)
// OpenGL seems to be off by one pixel in the Y direction due to lower-left origin, but only on
// Intel and NVIDIA drivers. AMD is fine. V3D requires coordinates to be slightly offset even further.
#if API_OPENGL || API_OPENGL_ES
#ifdef DRIVER_HACK_POS_EPSILON
#ifdef DRIVER_V3D
CONSTANT float POS_EPSILON = 0.0001;
#else
CONSTANT float POS_EPSILON = 0.00001;
#ifdef DRIVER_POWERVR
CONSTANT float POS_EPSILON = 0.001;
#else
CONSTANT float POS_EPSILON = 0.00001;
#endif
#endif
#endif
)";