From 5b9a31e2d4c86b3d5da69cd23814ee5c36dae8ae Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 26 Sep 2022 11:24:37 +0900 Subject: [PATCH] [Tizen] Submit a empty command buffer when rendering is skipped to flush Change-Id: Id0be7a139f6b990a8c17212102a0619aaeb8ea80 --- dali/internal/render/common/render-manager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dali/internal/render/common/render-manager.cpp b/dali/internal/render/common/render-manager.cpp index 75a80a2..6f28e02 100644 --- a/dali/internal/render/common/render-manager.cpp +++ b/dali/internal/render/common/render-manager.cpp @@ -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; } -- 2.7.4