Skip to content

Commit

Permalink
Main: GpuProgramTranslator - skip params on programs that failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Nov 26, 2023
1 parent f956ec5 commit f7e7c19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OgreMain/src/OgreScriptTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3640,6 +3640,10 @@ namespace Ogre{
if(prog->isSupported() && params)
{
GpuProgramParametersSharedPtr ptr = prog->getDefaultParameters();

if(prog->hasCompileError())
return;

GpuProgramTranslator::translateProgramParameters(compiler, ptr, static_cast<ObjectAbstractNode*>(params.get()));
}
}
Expand Down

0 comments on commit f7e7c19

Please sign in to comment.