Move a final flush to Shutdown 49/281449/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 19 Sep 2022 06:27:56 +0000 (15:27 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 19 Sep 2022 06:27:56 +0000 (15:27 +0900)
It makes the finalization is called from the update thread.

Change-Id: Iae1f3c26594f0ef7d38e1eaeffaf1eac753f54e4

dali/internal/graphics/gles-impl/egl-graphics-controller.h

index fd944d3..8999a06 100644 (file)
@@ -126,13 +126,7 @@ public:
   void Shutdown() override
   {
     mIsShuttingDown = true;
-  }
 
-  /**
-   * @copydoc Dali::Graphics::Destroy()
-   */
-  void Destroy() override
-  {
     // Final flush
     Flush();
 
@@ -151,6 +145,13 @@ public:
   }
 
   /**
+   * @copydoc Dali::Graphics::Destroy()
+   */
+  void Destroy() override
+  {
+  }
+
+  /**
    * @copydoc Dali::Graphics::UpdateTextures()
    */
   void UpdateTextures(const std::vector<TextureUpdateInfo>&       updateInfoList,