diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index 2d496cb50c..587dc2914e 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -88,7 +88,7 @@ static float PHackValue(std::string sValue) void UpdateProjectionHack(int iPhackvalue[], std::string sPhackvalue[]) { - float fhackvalue1 = 0, fhackvalue2 = 0; + float fhackvalue1 = 0, fhackvalue2 = FLT_EPSILON; // hack to fix depth clipping precision issues (such as Sonic Unleashed UI) float fhacksign1 = 1.0, fhacksign2 = 1.0; const char *sTemp[2];