diff options
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index bc75d400e..32bb28452 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp | |||
| @@ -135,8 +135,7 @@ Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buff | |||
| 135 | break; | 135 | break; |
| 136 | case Attribute::Index::ClipDistances0123: | 136 | case Attribute::Index::ClipDistances0123: |
| 137 | case Attribute::Index::ClipDistances4567: { | 137 | case Attribute::Index::ClipDistances4567: { |
| 138 | const auto clip_index = | 138 | const u64 clip_index = (index == Attribute::Index::ClipDistances4567 ? 4 : 0) + element; |
| 139 | static_cast<u32>((index == Attribute::Index::ClipDistances4567 ? 1 : 0) + element); | ||
| 140 | used_clip_distances.at(clip_index) = true; | 139 | used_clip_distances.at(clip_index) = true; |
| 141 | break; | 140 | break; |
| 142 | } | 141 | } |