glsl: Avoid implicit int->uint conversions (#12220)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user