Browse Source
Merge pull request #1813 from ReinUsesLisp/fixup-clip
gl_shader_decompiler: Fixup clip distance index
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
|
@ -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); |
|
|
|
|