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:
James Turner 2022-05-25 10:36:43 +01:00
parent 5afeb44cec
commit e1aba1364b

View File

@ -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) { if (sgprogram->getNumShaders() == 0) {
simgear::reportFailure(simgear::LoadFailure::BadData, simgear::reportFailure(simgear::LoadFailure::BadData,
simgear::ErrorCode::LoadEffectsShaders, simgear::ErrorCode::LoadEffectsShaders,
"No shader source code defined for effect", "No shader source code defined for effect",
effect->filePath()); effect->filePath());
} }
#endif
for (const auto& key : prgKey.attributes) { for (const auto& key : prgKey.attributes) {
program->addBindAttribLocation(key.first, key.second); program->addBindAttribLocation(key.first, key.second);