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
|
|
@ -737,8 +737,7 @@ bool HlslParseContext::shouldFlattenUniform(const TType& type) const
|
|||
return type.isArray() &&
|
||||
intermediate.getFlattenUniformArrays() &&
|
||||
qualifier == EvqUniform &&
|
||||
// Testing the EbtSampler basic type covers samplers and textures
|
||||
type.getBasicType() == EbtSampler;
|
||||
type.isOpaque();
|
||||
}
|
||||
|
||||
void HlslParseContext::flatten(const TSourceLoc& loc, const TVariable& variable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue