X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftexture-manager-impl.cpp;h=a1e9d8c9520489ca4a6bb019e3421eccd09bec19;hb=refs%2Ftags%2Fsubmit%2Ftizen%2F20190102.024341;hp=c617a5150637c225011c6bd4d102b0613e584393;hpb=c7ecf3ad7916ef6897fa192ea02ff7b1b2fc1bd8;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/texture-manager-impl.cpp b/dali-toolkit/internal/visuals/texture-manager-impl.cpp index c617a51..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 ) { @@ -932,8 +946,21 @@ TextureManager::TextureHash TextureManager::GenerateHash( { // We are not including sizing information, but we still need an extra byte for atlasing. hashTarget.resize( urlLength + 1u ); + // Add the atlasing to the hash input. - hashTarget[ urlLength ] = useAtlas; + switch( useAtlas ) + { + case UseAtlas::NO_ATLAS: + { + hashTarget[ urlLength ] = 'f'; + break; + } + case UseAtlas::USE_ATLAS: + { + hashTarget[ urlLength ] = 't'; + break; + } + } } if( maskTextureId != INVALID_TEXTURE_ID )