HLSL: Non-functional: Make test valid HLSL, and related comments/cleanup.
This commit is contained in:
parent
e2ff404f6b
commit
054378d988
4 changed files with 63 additions and 59 deletions
|
|
@ -725,7 +725,9 @@ void TReflection::buildCounterIndices()
|
|||
// Returns false if the input is too malformed to do this.
|
||||
bool TReflection::addStage(EShLanguage stage, const TIntermediate& intermediate)
|
||||
{
|
||||
if (intermediate.getNumEntryPoints() != 1 || intermediate.isRecursive())
|
||||
if (intermediate.getTreeRoot() == nullptr ||
|
||||
intermediate.getNumEntryPoints() != 1 ||
|
||||
intermediate.isRecursive())
|
||||
return false;
|
||||
|
||||
buildAttributeReflection(stage, intermediate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue