fix AnimatedImageVisual SetTextures after renderer was Reset 31/208031/1
authorjunqing.ma <junqing.ma@samsung.com>
Mon, 17 Jun 2019 09:55:57 +0000 (17:55 +0800)
committerjunqing.ma <junqing.ma@samsung.com>
Mon, 17 Jun 2019 09:55:57 +0000 (17:55 +0800)
Change-Id: I961ca73040f80ad00253915bafeb1b6662db37f4

dali-toolkit/internal/visuals/animated-image/animated-image-visual.cpp

index ec58860..a1c9331 100755 (executable)
@@ -527,7 +527,10 @@ void AnimatedImageVisual::StartFirstFrame( TextureSet& textureSet )
   DALI_LOG_INFO(gAnimImgLogFilter,Debug::Concise,"AnimatedImageVisual::StartFirstFrame()\n");
 
   mStartFirstFrame = false;
-  mImpl->mRenderer.SetTextures( textureSet );
+  if(mImpl->mRenderer)
+  {
+    mImpl->mRenderer.SetTextures( textureSet );
+  }
   Actor actor = mPlacementActor.GetHandle();
   if( actor )
   {
@@ -594,7 +597,10 @@ void AnimatedImageVisual::FrameReady( TextureSet textureSet )
   }
   else
   {
-    mImpl->mRenderer.SetTextures( textureSet );
+    if(mImpl->mRenderer)
+    {
+      mImpl->mRenderer.SetTextures( textureSet );
+    }
   }
 }