CanvasRenderer: Update tvgRoot 30/267430/1
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 3 Dec 2021 09:49:24 +0000 (18:49 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 3 Dec 2021 09:49:24 +0000 (18:49 +0900)
Before setting the target buffer, the push to the root is completed,
so the buffer is set and the root should be updated.

Change-Id: I0ffe524aa60a05086960d0fd349e7816b9a97d95

dali/internal/canvas-renderer/tizen/canvas-renderer-impl-tizen.cpp

index 7daa7c1..e767ada 100644 (file)
@@ -336,6 +336,8 @@ bool CanvasRendererTizen::Rasterize()
 
     mTvgCanvas->target(reinterpret_cast<uint32_t*>(buffer), stride / 4, width, height, tvg::SwCanvas::ARGB8888);
 
 
     mTvgCanvas->target(reinterpret_cast<uint32_t*>(buffer), stride / 4, width, height, tvg::SwCanvas::ARGB8888);
 
+    mTvgCanvas->update(mTvgRoot);
+
     if(mTvgCanvas->draw() != tvg::Result::Success)
     {
       DALI_LOG_ERROR("ThorVG Draw fail [%p]\n", this);
     if(mTvgCanvas->draw() != tvg::Result::Success)
     {
       DALI_LOG_ERROR("ThorVG Draw fail [%p]\n", this);