Prevents an invalid texture cache being interrogated for a texture. 54/47354/1
authorRichard Underhill <r.underhill@partner.samsung.com>
Wed, 2 Sep 2015 12:34:47 +0000 (13:34 +0100)
committerRichard Underhill <r.underhill@partner.samsung.com>
Wed, 2 Sep 2015 12:34:47 +0000 (13:34 +0100)
This 'fixes' the crash reported in gallery.
An investigation of the root cause is underway.

Change-Id: I30f48e33148a2399f23e81d71749c0bad6335919
Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
dali/internal/render/renderers/scene-graph-image-renderer.cpp

index dfba719..f20ed8e 100644 (file)
@@ -221,7 +221,10 @@ bool ImageRenderer::CheckResources()
 {
   if( mTexture == NULL )
   {
-    mTexture = mTextureCacheDELETEME->GetTexture( mTextureId );
+    if ( mTextureCacheDELETEME )
+    {
+      mTexture = mTextureCacheDELETEME->GetTexture( mTextureId );
+    }
   }
 
   if( mTexture == NULL )