GLSL/SPV: no location on atomic_uint; Fix #1339.

This commit is contained in:
John Kessenich 2018-04-09 17:21:30 -06:00
parent b92ce60fc7
commit 1dcd162399
3 changed files with 19 additions and 9 deletions

View file

@ -432,6 +432,7 @@ 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.getBasicType() == EbtAtomicUint ||
(type.containsOpaque() && intermediate.getSpv().openGl == 0))
return -1;