mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
glsl: Avoid implicit int->uint conversions (#12220)
This commit is contained in:
parent
cb2c0733e2
commit
2512e958fa
1 changed files with 2 additions and 2 deletions
|
@ -783,7 +783,7 @@ namespace glsl
|
|||
"\n"
|
||||
" uvec4 mask;\n"
|
||||
" vec4 convert;\n"
|
||||
" uint op_mask = control_bits & SIGN_EXPAND_MASK;\n"
|
||||
" uint op_mask = control_bits & uint(SIGN_EXPAND_MASK);\n"
|
||||
"\n"
|
||||
" if (op_mask != 0)\n"
|
||||
" {\n"
|
||||
|
@ -793,7 +793,7 @@ namespace glsl
|
|||
" rgba = _select(rgba, convert, notEqual(mask, uvec4(0)));\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" op_mask = control_bits & GAMMA_CTRL_MASK;\n"
|
||||
" op_mask = control_bits & uint(GAMMA_CTRL_MASK);\n"
|
||||
" if (op_mask != 0u)\n"
|
||||
" {\n"
|
||||
" // Gamma correction\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue