summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-11-27 19:35:26 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2018-11-27 19:35:26 +0100
commit2e9b90abad595f8d3ee8f165a409eaae44402c79 (patch)
tree4d526be463edf9f1c1065598139df0e94d222f20
parentMerge pull request #1810 from degasus/dirty_flags (diff)
downloadyuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.gz
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.bz2
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.lz
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.xz
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.zst
yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 7c0935a4e..0c4524d5c 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -520,7 +520,7 @@ public:
switch (attribute) {
case Attribute::Index::ClipDistances0123:
case Attribute::Index::ClipDistances4567: {
- const u64 index = attribute == Attribute::Index::ClipDistances4567 ? 4 : 0 + elem;
+ const u64 index = (attribute == Attribute::Index::ClipDistances4567 ? 4 : 0) + elem;
UNIMPLEMENTED_IF_MSG(
((header.vtg.clip_distances >> index) & 1) == 0,
"Shader is setting gl_ClipDistance{} without enabling it in the header", index);