glsl: Avoid implicit int->uint conversions (#12220)

This commit is contained in:
Ani 2022-06-12 18:05:43 +01:00 committed by GitHub
parent cb2c0733e2
commit 2512e958fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"