TextureCache: Force mono copies of the depth buffer.

Fixes stereoscopic stencil shadows in some games.
This commit is contained in:
Jules Blok 2014-10-31 22:27:18 +01:00
parent 3baa01fc73
commit 081212b765
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ TextureCache::TextureCache()
"out vec4 ocol0;\n" "out vec4 ocol0;\n"
"\n" "\n"
"void main(){\n" "void main(){\n"
" vec4 texcol = texture(samp9, f_uv0);\n" " vec4 texcol = texture(samp9, vec3(f_uv0.xy, 0));\n"
// 255.99998474121 = 16777215/16777216*256 // 255.99998474121 = 16777215/16777216*256
" float workspace = texcol.x * 255.99998474121;\n" " float workspace = texcol.x * 255.99998474121;\n"