VideoBackends: Floor depth values in depth copy shaders.

This commit is contained in:
Jules Blok
2015-05-06 22:02:12 +02:00
parent be810eb750
commit b0770e2a0c
2 changed files with 3 additions and 3 deletions

View File

@ -294,7 +294,7 @@ void TextureCache::CompileShaders()
"\n"
"void main(){\n"
" vec4 texcol = texture(samp9, vec3(f_uv0.xy, %s));\n"
" int depth = int(round(texcol.x * 16777216.0));\n"
" int depth = int(floor(texcol.x * 16777216.0));\n"
// Convert to Z24 format
" ivec4 workspace;\n"