diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-16 00:50:20 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-16 00:53:14 +0100 |
commit | 8e6e55d6f849c42ac3a1641e91d85ce8613dbc58 (patch) | |
tree | f645505ee15a9c431c39b6719451ad65aaa8418d /src/video_core/shader/shader_ir.cpp | |
parent | shader/shader_ir: Change declare output attribute to a switch (diff) | |
download | yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar.gz yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar.bz2 yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar.lz yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar.xz yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.tar.zst yuzu-8e6e55d6f849c42ac3a1641e91d85ce8613dbc58.zip |
Diffstat (limited to '')
-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 break; case Attribute::Index::ClipDistances0123: case Attribute::Index::ClipDistances4567: { - const auto clip_index = - static_cast<u32>((index == Attribute::Index::ClipDistances4567 ? 1 : 0) + element); + const u64 clip_index = (index == Attribute::Index::ClipDistances4567 ? 4 : 0) + element; used_clip_distances.at(clip_index) = true; break; } |