Add locations to opaque types for OpenGL
This commit is contained in:
parent
95b1334aa2
commit
1fe4a44759
3 changed files with 4 additions and 1 deletions
|
|
@ -431,7 +431,8 @@ struct TDefaultIoResolverBase : public glslang::TIoMapResolver
|
|||
|
||||
// no locations added if already present, a built-in variable, a block, or an opaque
|
||||
if (type.getQualifier().hasLocation() || type.isBuiltIn() ||
|
||||
type.getBasicType() == EbtBlock || type.containsOpaque())
|
||||
type.getBasicType() == EbtBlock ||
|
||||
(type.containsOpaque() && intermediate.getSpv().openGl == 0))
|
||||
return -1;
|
||||
|
||||
// no locations on blocks of built-in variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue