Enable premultiplied alpha in text visual 38/154638/2
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 11 Oct 2017 02:01:16 +0000 (11:01 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 11 Oct 2017 06:18:08 +0000 (06:18 +0000)
Change-Id: I4bb85043ab11e1b356831fc1062060af04dd3462

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

index e8c97f6..6c35875 100755 (executable)
@@ -657,6 +657,7 @@ void TextVisual::UpdateRenderer()
       mImpl->mRenderer.RegisterProperty( "uHasMultipleTextColors", static_cast<float>( hasMultipleTextColors ) );
 
       mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON);
       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 );
 
       //Register transform properties
       mImpl->mTransform.RegisterUniforms( mImpl->mRenderer, Direction::LEFT_TO_RIGHT );