diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
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: | |||
| 520 | switch (attribute) { | 520 | switch (attribute) { |
| 521 | case Attribute::Index::ClipDistances0123: | 521 | case Attribute::Index::ClipDistances0123: |
| 522 | case Attribute::Index::ClipDistances4567: { | 522 | case Attribute::Index::ClipDistances4567: { |
| 523 | const u64 index = attribute == Attribute::Index::ClipDistances4567 ? 4 : 0 + elem; | 523 | const u64 index = (attribute == Attribute::Index::ClipDistances4567 ? 4 : 0) + elem; |
| 524 | UNIMPLEMENTED_IF_MSG( | 524 | UNIMPLEMENTED_IF_MSG( |
| 525 | ((header.vtg.clip_distances >> index) & 1) == 0, | 525 | ((header.vtg.clip_distances >> index) & 1) == 0, |
| 526 | "Shader is setting gl_ClipDistance{} without enabling it in the header", index); | 526 | "Shader is setting gl_ClipDistance{} without enabling it in the header", index); |