diff options
Diffstat (limited to 'src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp')
-rw-r--r-- | src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp b/src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp index 279946a..325073d 100644 --- a/src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp +++ b/src/runtimerender/graphobjects/Qt3DSRenderEffect.cpp @@ -52,6 +52,8 @@ void SEffect::SetActive(bool inActive, IEffectSystem &inManager) if (m_Context) inManager.ResetEffectFrameData(*m_Context); m_Flags.SetDirty(true); + if (inActive) + inManager.SetEffectRequiresCompilation(m_ClassName, true); } } |