From c5f89f2de915c6915b249bf5521441695c0d3933 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 16 Mar 2025 11:35:56 -0500 Subject: [PATCH] VideoCommon: initialize uninitialized state value in pixel ubershader to prevent error on directx in some games --- Source/Core/VideoCommon/UberShaderPixel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 62cfd824d2..ef59414619 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -921,6 +921,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config, out.Write(" int3 tevcoord = int3(0, 0, 0);\n" " State s;\n" " s.TexColor = int4(0, 0, 0, 0);\n" + " s.RawTexColor = int4(0, 0, 0, 0);\n" " s.AlphaBump = 0;\n" "\n"); for (int i = 0; i < 4; i++)