summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/UberShaderCommon.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-11-23 22:40:03 +0000
committerGitHub <noreply@github.com>2022-11-23 22:40:03 +0000
commitd6437b7e461af0ef457c05be996d6fb30d7922ac (patch)
tree4a73b4b6ecb4fe3f172c7bbbdc729ddf0cde56d6 /Source/Core/VideoCommon/UberShaderCommon.cpp
parentddf63bacb9fec7bdc9cc2df3601cddce2bc8f7af (diff)
parentf5d11c1e388768043516fdb54e71b72c26c3c22d (diff)
Merge pull request #11123 from Pokechu22/fmt-9.1.0
Externals: Update fmt to 9.1.0
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderCommon.cpp')
-rw-r--r--Source/Core/VideoCommon/UberShaderCommon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/UberShaderCommon.cpp b/Source/Core/VideoCommon/UberShaderCommon.cpp
index b9c1306f8b..2af2f47927 100644
--- a/Source/Core/VideoCommon/UberShaderCommon.cpp
+++ b/Source/Core/VideoCommon/UberShaderCommon.cpp
@@ -118,10 +118,12 @@ void WriteVertexLighting(ShaderCode& out, APIType api_type, std::string_view wor
out.Write(" if ({} != 0u) {{\n", BitfieldExtract<&LitChannel::enablelighting>("alphareg"));
out.Write(" if ({} != 0u) {{\n", BitfieldExtract<&LitChannel::ambsource>("alphareg"));
- out.Write(" if ((components & ({}u << chan)) != 0u) // VB_HAS_COL0\n", VB_HAS_COL0);
+ out.Write(" if ((components & ({}u << chan)) != 0u) // VB_HAS_COL0\n",
+ static_cast<u32>(VB_HAS_COL0));
out.Write(" lacc.w = int(round(((chan == 0u) ? {}.w : {}.w) * 255.0));\n", in_color_0_var,
in_color_1_var);
- out.Write(" else if ((components & {}u) != 0u) // VB_HAS_COLO0\n", VB_HAS_COL0);
+ out.Write(" else if ((components & {}u) != 0u) // VB_HAS_COLO0\n",
+ static_cast<u32>(VB_HAS_COL0));
out.Write(" lacc.w = int(round({}.w * 255.0));\n", in_color_0_var);
out.Write(" else\n"
" lacc.w = 255;\n"