From: Heeyong Song Date: Mon, 26 Sep 2022 02:24:37 +0000 (+0900) Subject: Submit a empty command buffer when rendering is skipped to flush X-Git-Tag: dali_2.1.42~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F281985%2F1;p=platform%2Fcore%2Fuifw%2Fdali-core.git Submit a empty command buffer when rendering is skipped to flush Change-Id: Id0be7a139f6b990a8c17212102a0619aaeb8ea80 --- 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; }