Not use premultiplication on load if custom shader is used 43/166443/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 10 Jan 2018 08:02:17 +0000 (17:02 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 10 Jan 2018 08:02:17 +0000 (17:02 +0900)
Change-Id: Idddb7b0cbc5b151ea2554252c46dc9e789fd1975

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

index d9ea9cd..e010b4f 100644 (file)
@@ -779,7 +779,7 @@ void ImageVisual::LoadTexture( bool& atlasing, Vector4& atlasRect, TextureSet& t
     atlasUploadObserver = this;
   }
 
-  auto preMultiplyOnLoad = mFactoryCache.GetPreMultiplyOnLoad()
+  auto preMultiplyOnLoad = mFactoryCache.GetPreMultiplyOnLoad() && !mImpl->mCustomShader
     ? TextureManager::MultiplyOnLoad::MULTIPLY_ON_LOAD
     : TextureManager::MultiplyOnLoad::LOAD_WITHOUT_MULTIPLY;