From 16b6d5eb085609be4d762c1bf86e732817201e01 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Thu, 19 Apr 2018 01:50:48 +0900 Subject: [PATCH] When loading two or more imageviews with the same URL It should not be rendered at not start or loading fail. check mLoading value in DoSetOnStage() at image-visual.cpp Change-Id: I920a0a30d9aff202dd2975ad50dc06fa3fec1eef --- dali-toolkit/internal/visuals/texture-manager-impl.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/visuals/texture-manager-impl.cpp b/dali-toolkit/internal/visuals/texture-manager-impl.cpp index dc1c2b9..989320e 100755 --- a/dali-toolkit/internal/visuals/texture-manager-impl.cpp +++ b/dali-toolkit/internal/visuals/texture-manager-impl.cpp @@ -229,7 +229,21 @@ TextureSet TextureManager::LoadTexture( } TextureManager::LoadState loadState = GetTextureStateInternal( textureId ); - loadingStatus = ( loadState == TextureManager::LOADING ); + switch( loadState ) + { + case TextureManager::NOT_STARTED: + case TextureManager::LOADING: + case TextureManager::LOAD_FAILED: + { + loadingStatus = true; + break; + } + default: + { + loadingStatus = false; + break; + } + } if( loadState == TextureManager::UPLOADED ) { -- 2.7.4