diff options
| author | Jules Blok <jules.blok@gmail.com> | 2015-08-15 13:46:34 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2015-08-15 13:50:43 +0200 |
| commit | b01ca1794a81435c215519ef42b5ffd056a54170 (patch) | |
| tree | db4849f371fe876498fc70c683501bf35288411e /Source/Core/VideoBackends/OGL/TextureCache.cpp | |
| parent | e28fa1588febbfe24d37009ed38f89d4121d2473 (diff) | |
Revert "VideoCommon: Clamp integer conversions."
This reverts commit 0f2c72f0f844c219e168faa7de8dd515f8723fdc.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureCache.cpp b/Source/Core/VideoBackends/OGL/TextureCache.cpp index c11c9dfc45..85a564742e 100644 --- a/Source/Core/VideoBackends/OGL/TextureCache.cpp +++ b/Source/Core/VideoBackends/OGL/TextureCache.cpp @@ -362,7 +362,7 @@ void TextureCache::CompileShaders() "\n" "void main(){\n" " vec4 texcol = texture(samp9, vec3(f_uv0.xy, %s));\n" - " int depth = clamp(int(texcol.x * 16777216.0), 0, 0xFFFFFF);\n" + " int depth = int(floor(texcol.x * 16777216.0));\n" // Convert to Z24 format " ivec4 workspace;\n" |
