diff --git a/Engine/OfxHost.cpp b/Engine/OfxHost.cpp index 6b16bd91e9..ab38e5720e 100644 --- a/Engine/OfxHost.cpp +++ b/Engine/OfxHost.cpp @@ -299,11 +299,13 @@ OfxHost::setProperties() _properties.setIntProperty(kOfxParamHostPropPageRowColumnCount, 0, 1 ); _properties.setIntProperty(kOfxImageEffectInstancePropSequentialRender, 2); // OFX 1.2 #ifdef OFX_SUPPORTS_OPENGLRENDER - if (appPTR->getCurrentSettings()->isOpenGLRenderingEnabled()) { - _properties.setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "true"); // OFX 1.3 - } else { - _properties.setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "false"); // OFX 1.3 - } + // all host properties should be static and not depend on the settings, or the plugin cache may be wrong + _properties.setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "true"); // OFX 1.3 + //if (appPTR->getCurrentSettings()->isOpenGLRenderingEnabled()) { + // _properties.setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "true"); // OFX 1.3 + //} else { + // _properties.setStringProperty(kOfxImageEffectPropOpenGLRenderSupported, "false"); // OFX 1.3 + //} #endif _properties.setIntProperty(kOfxImageEffectPropRenderQualityDraft, 1); // OFX 1.4 _properties.setStringProperty(kOfxImageEffectHostPropNativeOrigin, kOfxHostNativeOriginBottomLeft); // OFX 1.4