Non-functional: Use isOpaque() instead of compare against EbtSampler.
This commit is contained in:
parent
47e6fa1cad
commit
f571d0c037
3 changed files with 4 additions and 5 deletions
|
|
@ -366,7 +366,7 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
|
|||
else if (variableType.getBasicType() == EbtBlock)
|
||||
parseContext.declareBlock(idToken.loc, variableType, idToken.string);
|
||||
else {
|
||||
if (variableType.getQualifier().storage == EvqUniform && variableType.getBasicType() != EbtSampler) {
|
||||
if (variableType.getQualifier().storage == EvqUniform && ! variableType.isOpaque()) {
|
||||
// this isn't really an individual variable, but a member of the $Global buffer
|
||||
parseContext.growGlobalUniformBlock(idToken.loc, variableType, *idToken.string);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue