evas gl: enable GL_LINE_SMOOTH only at gles 1.x

As the GLES specification,
GL_LINE_SMOOTH is not supported since GLES2.
This commit is contained in:
Hermet Park 2019-12-31 16:27:25 +09:00
parent 0f0f8d7fbc
commit 745eea61b0
1 changed files with 2 additions and 1 deletions

View File

@ -4301,7 +4301,8 @@ 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)
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);