Merge "Fix the text artifact (i.e. vertical lines below the text) while scrolling...
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 16 Oct 2017 10:17:30 +0000 (10:17 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 16 Oct 2017 10:17:30 +0000 (10:17 +0000)
dali-toolkit/internal/text/text-scroller.cpp

index e85a2fd..dbc16eb 100644 (file)
@@ -84,6 +84,8 @@ const char* FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
   \n
   void main()\n
   {\n
+    if ( vTexCoord.y > 1.0 )\n
+      discard;\n
     gl_FragColor = texture2D( sTexture, vTexCoord );\n
   }\n
 );