From 21667c0c415c60383b2764cedb87ca50c76edb19 Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Tue, 26 Dec 2017 15:59:40 +0900 Subject: [PATCH] [4.0] Fixed Text texture quality issue when auto scrolling - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-toolkit/internal/text/text-scroller.cpp b/dali-toolkit/internal/text/text-scroller.cpp index f8089a2..c60e2db 100644 --- a/dali-toolkit/internal/text/text-scroller.cpp +++ b/dali-toolkit/internal/text/text-scroller.cpp @@ -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 -- 2.7.4