diff options
| author | 2018-11-27 15:35:26 -0300 | |
|---|---|---|
| committer | 2018-11-27 15:35:26 -0300 | |
| commit | 2e9b90abad595f8d3ee8f165a409eaae44402c79 (patch) | |
| tree | 4d526be463edf9f1c1065598139df0e94d222f20 /src | |
| parent | Merge pull request #1810 from degasus/dirty_flags (diff) | |
| download | yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.gz yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.tar.xz yuzu-2e9b90abad595f8d3ee8f165a409eaae44402c79.zip | |
gl_shader_decompiler: Fixup clip distance index
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); |