mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 00:37:33 +01:00
gl_shader_decompiler: Fixup clip distance index
This commit is contained in:
parent
5bea164a77
commit
2e9b90abad
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user