[Tizen] Submit a empty command buffer when rendering is skipped to flush 98/281998/1 accepted/tizen/unified/20220928.020803
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 26 Sep 2022 02:24:37 +0000 (11:24 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 26 Sep 2022 05:47:43 +0000 (14:47 +0900)
Change-Id: Id0be7a139f6b990a8c17212102a0619aaeb8ea80

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

index 75a80a2..6f28e02 100644 (file)
@@ -970,9 +970,12 @@ void RenderManager::PostRender()
 {
   if(!mImpl->commandBufferSubmitted)
   {
-    // Rendering is skipped but there may be pending commands
-    // Submit command buffers
-    mImpl->renderAlgorithms.SubmitCommandBuffer();
+    // Rendering is skipped but there may be pending tasks. Flush them.
+    Graphics::SubmitInfo submitInfo;
+    submitInfo.cmdBuffer.clear(); // Only flush
+    submitInfo.flags = 0 | Graphics::SubmitFlagBits::FLUSH;
+    mImpl->graphicsController.SubmitCommandBuffers(submitInfo);
+
     mImpl->commandBufferSubmitted = true;
   }