Merge "Not use premultiplication on load if custom shader is used" into devel/master
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 11 Jan 2018 01:09:20 +0000 (01:09 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 11 Jan 2018 01:09:20 +0000 (01:09 +0000)
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;