summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/UberShaderPixel.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-07-08 18:46:29 -0400
committerGitHub <noreply@github.com>2022-07-08 18:46:29 -0400
commitfac66897af7336b5e2dc2e3b879effb98b30fe47 (patch)
treebb9c79964a90f159554daf8fa62f53043a2b6d29 /Source/Core/VideoCommon/UberShaderPixel.cpp
parentf50e7e6e6d4f8d814636095d098aeeca99666f14 (diff)
parente1e0f42b37dd7f2343b9df99222f32ae56963456 (diff)
Merge pull request #10819 from Dentomologist/fix_shader_compilation_warnings
VideoCommon: Fix D3D shader compilation warnings
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderPixel.cpp')
-rw-r--r--Source/Core/VideoCommon/UberShaderPixel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp
index de1aaa72f7..01df6fe5c6 100644
--- a/Source/Core/VideoCommon/UberShaderPixel.cpp
+++ b/Source/Core/VideoCommon/UberShaderPixel.cpp
@@ -827,8 +827,8 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
out.Write(
" uint alpha_compare_op = alpha_scale << 1 | uint(alpha_op);\n"
"\n"
- " int alpha_A;\n"
- " int alpha_B;\n"
+ " int alpha_A = 0;\n"
+ " int alpha_B = 0;\n"
" if (alpha_bias != 3u || alpha_compare_op > 5u) {{\n"
" // Small optimisation here: alpha_A and alpha_B are unused by compare ops 0-5\n"
" alpha_A = selectAlphaInput(s, ss, {0}colors_0, {0}colors_1, alpha_a) & 255;\n"