VertexShaderManager: Use a more accurate depth range.

This fixes the gxtest_depth hwtest.
This commit is contained in:
Jules Blok 2016-08-04 18:26:45 +02:00
parent c223bd47b9
commit 92aa7669b5

View File

@ -388,8 +388,8 @@ void VertexShaderManager::SetConstants()
constants.pixelcentercorrection[1] = pixel_center_correction * pixel_size_y;
// The depth range is handled in the vertex shader.
constants.pixelcentercorrection[2] = (xfmem.viewport.zRange) / 16777216.0f;
constants.pixelcentercorrection[3] = (xfmem.viewport.farZ) / 16777216.0f;
constants.pixelcentercorrection[2] = xfmem.viewport.zRange / 16777215.0f;
constants.pixelcentercorrection[3] = xfmem.viewport.farZ / 16777215.0f;
dirty = true;
// This is so implementation-dependent that we can't have it here.