mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 00:12:45 +00:00
VideoCommon: Clamp integer conversions.
This commit is contained in:
parent
b0770e2a0c
commit
0f2c72f0f8
3 changed files with 8 additions and 8 deletions
|
@ -294,7 +294,7 @@ void TextureCache::CompileShaders()
|
|||
"\n"
|
||||
"void main(){\n"
|
||||
" vec4 texcol = texture(samp9, vec3(f_uv0.xy, %s));\n"
|
||||
" int depth = int(floor(texcol.x * 16777216.0));\n"
|
||||
" int depth = clamp(int(texcol.x * 16777216.0), 0, 0xFFFFFF);\n"
|
||||
|
||||
// Convert to Z24 format
|
||||
" ivec4 workspace;\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue