HLSL: Non-functional: Make test valid HLSL, and related comments/cleanup.

This commit is contained in:
John Kessenich 2017-06-19 15:13:26 -06:00
parent e2ff404f6b
commit 054378d988
4 changed files with 63 additions and 59 deletions

View file

@ -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);