[4.0] Enable premultiplied alpha in text visual 37/154637/1 accepted/tizen/4.0/unified/20171011.071812 submit/tizen_4.0/20171011.020858
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 11 Oct 2017 01:16:20 +0000 (10:16 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 11 Oct 2017 01:59:52 +0000 (10:59 +0900)
Change-Id: Idaf85e6f4d6699a8ce5ea431dba5ed23c081be30

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

index f274321..d813ee0 100755 (executable)
@@ -698,6 +698,7 @@ void TextVisual::UpdateRenderer()
       mImpl->mRenderer.RegisterProperty( "uHasMultipleTextColors", static_cast<float>( hasMultipleTextColors ) );
 
       mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON);
+      mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_PRE_MULTIPLIED_ALPHA, true );
 
       //Register transform properties
       mImpl->mTransform.RegisterUniforms( mImpl->mRenderer, Direction::LEFT_TO_RIGHT );