[4.0] Fixed Text texture quality issue when auto scrolling 80/164980/2
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 26 Dec 2017 06:59:40 +0000 (15:59 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Tue, 26 Dec 2017 06:59:40 +0000 (15:59 +0900)
 - When using emoji, an unknown line appears at the top of the texture.
 - Add exception handling code to shader code

Change-Id: Ie8368fdff2208ba3c5107b99b88bd9007cd2cf58

dali-toolkit/internal/text/text-scroller.cpp

index f8089a2..c60e2db 100644 (file)
@@ -93,7 +93,7 @@ const char* FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
   \n
   void main()\n
   {\n
-    if ( vTexCoord.y > 1.0 )\n
+    if ( vTexCoord.y > 1.0 || vTexCoord.y < 0.0 )\n
       discard;\n
     \n
     mediump vec4 textTexture = texture2D( sTexture, vTexCoord );\n