Kaynağa Gözat

Added Missing braces that caused crashing on non-bloom backgrounds

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 3 yıl önce
ebeveyn
işleme
e24c19ff81
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/WallpaperEngine/Render/CScene.cpp

+ 4 - 1
src/WallpaperEngine/Render/CScene.cpp

@@ -156,13 +156,16 @@ CScene::CScene (Core::CScene* scene, CContext* context) :
 
 
     // create image for bloom passes
     // create image for bloom passes
     if (this->getScene ()->isBloom () == true)
     if (this->getScene ()->isBloom () == true)
+    {
         this->m_bloomObject = this->createObject (
         this->m_bloomObject = this->createObject (
             WallpaperEngine::Core::CObject::fromJSON (
             WallpaperEngine::Core::CObject::fromJSON (
                 json, this->getContainer ()
                 json, this->getContainer ()
             )
             )
         );
         );
 
 
-    this->_rt_imageCompositeLayer_bloom = this->findFBO ("_rt_imageLayerComposite_-1_b");
+        this->_rt_imageCompositeLayer_bloom = this->findFBO ("_rt_imageLayerComposite_-1_b");
+    }
+
     this->_rt_FullFrameBuffer = this->m_sceneFBO;
     this->_rt_FullFrameBuffer = this->m_sceneFBO;
 }
 }