summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-27 22:28:55 +0100
committerGitHub <noreply@github.com>2018-11-27 22:28:55 +0100
commit066140854a7614093f1ee13bc200635c8be6cac1 (patch)
tree4d526be463edf9f1c1065598139df0e94d222f20
parentMerge pull request #1810 from degasus/dirty_flags (diff)
parentgl_shader_decompiler: Fixup clip distance index (diff)
downloadyuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar.gz
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar.bz2
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar.lz
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar.xz
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.tar.zst
yuzu-066140854a7614093f1ee13bc200635c8be6cac1.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);