2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #1813 from ReinUsesLisp/fixup-clip

gl_shader_decompiler: Fixup clip distance index
This commit is contained in:
bunnei 2018-11-27 16:28:55 -05:00 committed by GitHub
commit 066140854a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -520,7 +520,7 @@ public:
switch (attribute) { switch (attribute) {
case Attribute::Index::ClipDistances0123: case Attribute::Index::ClipDistances0123:
case Attribute::Index::ClipDistances4567: { 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( UNIMPLEMENTED_IF_MSG(
((header.vtg.clip_distances >> index) & 1) == 0, ((header.vtg.clip_distances >> index) & 1) == 0,
"Shader is setting gl_ClipDistance{} without enabling it in the header", index); "Shader is setting gl_ClipDistance{} without enabling it in the header", index);