[Tizen] Fix RenderStatus bug 82/269382/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 13 Jan 2022 09:01:05 +0000 (18:01 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 13 Jan 2022 09:01:05 +0000 (18:01 +0900)
The RenderStatus::needsUpdate was not set when the partial update is not available.

Change-Id: Ibd645dc2006820a667029300729f90fcf2b5d371

dali/internal/render/common/render-manager.cpp

index 469b073..ed601b0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -468,11 +468,6 @@ void RenderManager::PreRender(Integration::RenderStatus& status, bool forceClear
 
 void RenderManager::PreRender(Integration::RenderStatus& status, Integration::Scene& scene, std::vector<Rect<int>>& damagedRects)
 {
-  if(mImpl->partialUpdateAvailable != Integration::PartialUpdateAvailable::TRUE)
-  {
-    return;
-  }
-
   Internal::Scene&   sceneInternal = GetImplementation(scene);
   SceneGraph::Scene* sceneObject   = sceneInternal.GetSceneObject();
 
@@ -485,6 +480,11 @@ void RenderManager::PreRender(Integration::RenderStatus& status, Integration::Sc
 
   status.SetNeedsUpdate(true);
 
+  if(mImpl->partialUpdateAvailable != Integration::PartialUpdateAvailable::TRUE)
+  {
+    return;
+  }
+
   class DamagedRectsCleaner
   {
   public: