VertexShaderManager: Turn the epsilon hack back on for 3D Vision.

The bug is fixed in version 347.52 of the drivers.
This commit is contained in:
Jules Blok 2015-02-21 12:09:49 +01:00
parent 6bbf774507
commit ff4127cf50
1 changed files with 1 additions and 2 deletions

View File

@ -458,8 +458,7 @@ void VertexShaderManager::SetConstants()
g_fProjectionMatrix[14] = 0.0f;
// Hack to fix depth clipping precision issues (such as Sonic Unleashed UI)
// Turn it off for Nvidia 3D Vision, because it can't handle such a projection matrix
g_fProjectionMatrix[15] = (g_ActiveConfig.iStereoMode == STEREO_3DVISION) ? 1.0f : 1.0f + FLT_EPSILON;
g_fProjectionMatrix[15] = 1.0f + FLT_EPSILON;
SETSTAT_FT(stats.g2proj_0, g_fProjectionMatrix[0]);
SETSTAT_FT(stats.g2proj_1, g_fProjectionMatrix[1]);