TextureConversionShader: Invert depth for Z24 encoder with D3D

This commit is contained in:
Stenzek 2016-02-22 00:09:07 +10:00
parent bd148e911b
commit 1ce38a136d

View File

@ -557,8 +557,8 @@ static void WriteZ24Encoder(char*& p, API_TYPE ApiType)
WRITE(p, " float3 expanded0;\n");
WRITE(p, " float3 expanded1;\n");
WriteSampleColor(p, "r", "depth0", 0, ApiType);
WriteSampleColor(p, "r", "depth1", 1, ApiType);
WriteSampleColor(p, "r", "depth0", 0, ApiType, true);
WriteSampleColor(p, "r", "depth1", 1, ApiType, true);
for (int i = 0; i < 2; i++)
{