Disable the 'no shaders defined' error for now
Until we have a way to mark techqniues as permanently disabled, remove this check, since it generates false positives. Especially, see model-combined technnique n=9.
This commit is contained in:
parent
5afeb44cec
commit
e1aba1364b
@ -998,12 +998,16 @@ void ShaderProgramBuilder::buildAttribute(Effect* effect, Pass* pass,
|
||||
}
|
||||
}
|
||||
|
||||
// disabling this check because some effects have disabled technqiues
|
||||
// with no shaders defined, intentionally.
|
||||
#if 0
|
||||
if (sgprogram->getNumShaders() == 0) {
|
||||
simgear::reportFailure(simgear::LoadFailure::BadData,
|
||||
simgear::ErrorCode::LoadEffectsShaders,
|
||||
"No shader source code defined for effect",
|
||||
effect->filePath());
|
||||
}
|
||||
#endif
|
||||
|
||||
for (const auto& key : prgKey.attributes) {
|
||||
program->addBindAttribLocation(key.first, key.second);
|
||||
|
Loading…
Reference in New Issue
Block a user