VideoConfig: Replace FastDepthCalc by ForcedSlowDepth.

Fast depth is now more accurate than slow depth and should always be used.
The option will be kept in a different form as it is still used as a hack to fix some games.
Also, the slow depth code path will still be relied upon by cards that don't support GL_ARB_clip_control.
This commit is contained in:
Jules Blok
2016-01-27 16:13:41 +01:00
parent 08c9e3b7a4
commit 9805f70913
6 changed files with 21 additions and 17 deletions

View File

@ -333,7 +333,7 @@ static T GenerateVertexShader(API_TYPE api_type)
else // OGL
{
// this results in a scale from -1..0 to -1..1 after perspective
// divide
// divide, but introduces a floating point round-trip error.
out.Write("o.pos.z = o.pos.z * -2.0 - o.pos.w;\n");
// the next steps of the OGL pipeline are: