From: Jiyun Yang Date: Mon, 14 Jan 2019 05:45:35 +0000 (+0900) Subject: [Tizen] Fix to avoid empty texture rendering issue X-Git-Tag: submit/tizen/20190114.061957^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=646a888df4f26555227b79c563b0c0f483e9730f [Tizen] Fix to avoid empty texture rendering issue This reverts commit 8c9bbffdab6df310d896eb77ea62f76764dde927. --- diff --git a/dali-toolkit/internal/visuals/texture-manager-impl.cpp b/dali-toolkit/internal/visuals/texture-manager-impl.cpp index 1ea95a9..a1e9d8c 100644 --- a/dali-toolkit/internal/visuals/texture-manager-impl.cpp +++ b/dali-toolkit/internal/visuals/texture-manager-impl.cpp @@ -242,7 +242,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 ) {