summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-07-13 03:56:14 -0400
committerGitHub <noreply@github.com>2022-07-13 03:56:14 -0400
commitcb350aed5342be3b9b893a97e254bf626b4886c4 (patch)
tree1828b3fba2022ae38b134a4ff04774c4a7ea7f97 /Source/Core/VideoCommon/PixelShaderGen.cpp
parentaa294337547c067452954c8d1dd002130a23cb14 (diff)
parent6bd0fc86ba228195315d823d822a04174bc8982b (diff)
Merge pull request #10841 from tellowkrinkle/FBFetchLogicOpMasking
VideoCommon: Properly mask fbfetch logic op emulation
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 3304c74658..3220131a71 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -1843,7 +1843,7 @@ static void WriteLogicOp(ShaderCode& out, const pixel_shader_uid_data* uid_data)
};
out.Write("\tint4 fb_value = iround(initial_ocol0 * 255.0);\n");
- out.Write("\tprev = {};\n", logic_op_mode[uid_data->logic_op_mode]);
+ out.Write("\tprev = ({}) & 0xff;\n", logic_op_mode[uid_data->logic_op_mode]);
}
static void WriteColor(ShaderCode& out, APIType api_type, const pixel_shader_uid_data* uid_data,