mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-16 19:55:46 -04:00
GPU/HW: Use a larger epsilon for PowerVR
This commit is contained in:
@ -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
|
||||
)";
|
||||
|
Reference in New Issue
Block a user