Standalone: Fix #1814: Check that linkage was specified for reflection.
This commit is contained in:
parent
974a586688
commit
e5c394bcba
3 changed files with 17 additions and 10 deletions
|
|
@ -1984,7 +1984,7 @@ const char* TProgram::getInfoDebugLog()
|
|||
|
||||
bool TProgram::buildReflection(int opts)
|
||||
{
|
||||
if (! linked || reflection)
|
||||
if (! linked || reflection != nullptr)
|
||||
return false;
|
||||
|
||||
int firstStage = EShLangVertex, lastStage = EShLangFragment;
|
||||
|
|
@ -2014,9 +2014,8 @@ bool TProgram::buildReflection(int opts)
|
|||
return true;
|
||||
}
|
||||
|
||||
unsigned TProgram::getLocalSize(int dim) const { return reflection->getLocalSize(dim); }
|
||||
int TProgram::getReflectionIndex(const char* name) const { return reflection->getIndex(name); }
|
||||
|
||||
unsigned TProgram::getLocalSize(int dim) const { return reflection->getLocalSize(dim); }
|
||||
int TProgram::getReflectionIndex(const char* name) const { return reflection->getIndex(name); }
|
||||
int TProgram::getNumUniformVariables() const { return reflection->getNumUniforms(); }
|
||||
const TObjectReflection& TProgram::getUniform(int index) const { return reflection->getUniform(index); }
|
||||
int TProgram::getNumUniformBlocks() const { return reflection->getNumUniformBlocks(); }
|
||||
|
|
@ -2031,8 +2030,7 @@ int TProgram::getNumBufferBlocks() const { return r
|
|||
const TObjectReflection& TProgram::getBufferBlock(int index) const { return reflection->getStorageBufferBlock(index); }
|
||||
int TProgram::getNumAtomicCounters() const { return reflection->getNumAtomicCounters(); }
|
||||
const TObjectReflection& TProgram::getAtomicCounter(int index) const { return reflection->getAtomicCounter(index); }
|
||||
|
||||
void TProgram::dumpReflection() { reflection->dump(); }
|
||||
void TProgram::dumpReflection() { if (reflection != nullptr) reflection->dump(); }
|
||||
|
||||
//
|
||||
// I/O mapping implementation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue