Set the LoadSuccessflag to false after ReleaseResource() is called 95/275195/3
authortscholb <scholb.kim@samsung.com>
Wed, 18 May 2022 05:26:34 +0000 (14:26 +0900)
committertscholb <scholb.kim@samsung.com>
Thu, 26 May 2022 07:30:37 +0000 (16:30 +0900)
When the non-animated image is detached from the scene first and attached to the scene again,
webp-loading can't load webp information because it is already loaded its information.

To re-load this information, we need to set the flag to false.

Change-Id: I9a881cda51eba7212978bb43fb37b86baac7cf79

dali/internal/imaging/common/loader-webp.cpp
dali/internal/imaging/common/webp-loading.cpp

index 3749127..25a24d6 100644 (file)
@@ -55,7 +55,7 @@ bool LoadBitmapFromWebp(const Dali::ImageLoader::Input& input, Dali::Devel::Pixe
   if(webPLoading)
   {
     Dali::Devel::PixelBuffer pixelBuffer = webPLoading.LoadFrame(FIRST_FRAME_INDEX);
-    if(pixelBuffer && webPLoading.HasLoadingSucceeded())
+    if(pixelBuffer)
     {
       bitmap = pixelBuffer;
       return true;
index a5b8dab..61baf2a 100644 (file)
@@ -237,6 +237,8 @@ public:
       free((void*)mBuffer);
       mBuffer = nullptr;
     }
+
+    mLoadSucceeded = false;
   }
 
   // Moveable but not copyable