summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_context.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-31 16:27:25 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-31 16:27:25 +0900
commit36719d4125ea9858cad1ada6eaa52ec327c2c006 (patch)
tree18c3a2709ffc035ec85e63bd1abd891351072012 /src/modules/evas/engines/gl_common/evas_gl_context.c
parentc14b37b212d70dbf87cc6c70d610c58663ca6795 (diff)
evas gl: enable GL_LINE_SMOOTH only at gles 1.x
As the GLES specification, GL_LINE_SMOOTH is not supported since GLES2.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c
index 6637a839df..da361679bc 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -4301,7 +4301,8 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
4301 4301
4302 if (gc->pipe[i].array.line) 4302 if (gc->pipe[i].array.line)
4303 { 4303 {
4304 if (gc->pipe[i].array.anti_alias) 4304 //LINE_SMOOTH is supported at gles 1.x spec.
4305 if ((gc->gles_version == 1) && gc->pipe[i].array.anti_alias)
4305 { 4306 {
4306 glEnable(GL_BLEND); 4307 glEnable(GL_BLEND);
4307 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 4308 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);