From d73cb8d5620abe0cce65941ce63ce2cf5de6690b Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Fri, 15 Jan 2016 11:16:48 +0000
Subject: [PATCH] Fixed regression with Actor::COLOR property in TextLabel
Change-Id: I16eb72d23354af029f5e451e60e99219456663af
---
.../internal/text/rendering/atlas/atlas-glyph-manager-impl.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.cpp b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.cpp
index 0a90ef2..c8ea1e2 100644
--- a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.cpp
+++ b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.cpp
@@ -48,6 +48,7 @@ void main()
);
const char* FRAGMENT_SHADER_L8 = MAKE_SHADER(
+uniform lowp vec4 uColor;
uniform sampler2D sTexture;
varying mediump vec2 vTexCoord;
varying mediump vec4 vColor;
@@ -55,7 +56,7 @@ varying mediump vec4 vColor;
void main()
{
mediump vec4 color = texture2D( sTexture, vTexCoord );
- gl_FragColor = vec4( vColor.rgb, vColor.a * color.r );
+ gl_FragColor = vec4( vColor.rgb * uColor.rgb, vColor.a * uColor.a * color.r );
}
);
--
2.7.4