From b01ca1794a81435c215519ef42b5ffd056a54170 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 15 Aug 2015 13:46:34 +0200 Subject: Revert "VideoCommon: Clamp integer conversions." This reverts commit 0f2c72f0f844c219e168faa7de8dd515f8723fdc. --- Source/Core/VideoBackends/D3D/PixelShaderCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/D3D/PixelShaderCache.cpp') diff --git a/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp b/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp index 2855729296..bba7b4a30a 100644 --- a/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp +++ b/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp @@ -146,7 +146,7 @@ const char depth_matrix_program[] = { " in float4 pos : SV_Position,\n" " in float3 uv0 : TEXCOORD0){\n" " float4 texcol = Tex0.Sample(samp0,uv0);\n" - " int depth = clamp(int((1.0 - texcol.x) * 16777216.0), 0, 0xFFFFFF);\n" + " int depth = int((1.0 - texcol.x) * 16777216.0);\n" // Convert to Z24 format " int4 workspace;\n" @@ -180,7 +180,7 @@ const char depth_matrix_program_msaa[] = { " for(int i = 0; i < SAMPLES; ++i)\n" " texcol += Tex0.Load(int3(uv0.x*(width), uv0.y*(height), uv0.z), i);\n" " texcol /= SAMPLES;\n" - " int depth = clamp(int((1.0 - texcol.x) * 16777216.0), 0, 0xFFFFFF);\n" + " int depth = int((1.0 - texcol.x) * 16777216.0);\n" // Convert to Z24 format " int4 workspace;\n" -- cgit v1.2.3