added try/catch to processor retrieve

This commit is contained in:
itsmattkc
2019-03-17 11:23:30 +11:00
parent 535df4814c
commit eef306ff1e
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -215,7 +215,15 @@ void RenderThread::set_up_ocio()
// GET OCIO PROCESSOR
//
OCIO::ConstProcessorRcPtr processor = OCIO::GetCurrentConfig()->getProcessor(transform);
OCIO::ConstProcessorRcPtr processor;
try {
processor = OCIO::GetCurrentConfig()->getProcessor(transform);
} catch(OCIO::Exception & e) {
qCritical() << e.what();
ctx->functions()->glActiveTexture(GL_TEXTURE0);
return;
}
//
// SET UP GLSL SHADER