evas gl: enable GL_LINE_SMOOTH only at gles 1.x 36/221336/1
authorHermet Park <hermetpark@gmail.com>
Tue, 31 Dec 2019 07:27:25 +0000 (16:27 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 31 Dec 2019 07:31:39 +0000 (16:31 +0900)
As the GLES specification,
GL_LINE_SMOOTH is not supported since GLES2.

Change-Id: I8db4c26aad2247d7182c83844382745556c79004

src/modules/evas/engines/gl_common/evas_gl_context.c

index 5512ae1..afefe02 100644 (file)
@@ -4606,7 +4606,8 @@ _orig_shader_array_flush(Evas_Engine_GL_Context *gc)
 
         if (gc->pipe[i].array.line)
           {
-             if (gc->pipe[i].array.anti_alias)
+             //LINE_SMOOTH is supported at gles 1.x spec.
+             if ((gc->gles_version == 1) && gc->pipe[i].array.anti_alias)
                {
                   GL_TH(glEnable, GL_BLEND);
                   GL_TH(glBlendFunc, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);