evas-gl-common: Fix compile for EGL due to missing GL_LINE_SMOOTH
authorChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 13:04:21 +0000 (09:04 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 13:04:21 +0000 (09:04 -0400)
Summary:
When compiling for EGL, GL_LINE_SMOOTH ends up not being defined so
compile breaks. This fix just checks if GL_LINE_SMOOTH is missing and
if so it defines it.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/gl_common/evas_gl_context.c

index 14f3ff1..b05d348 100644 (file)
@@ -32,6 +32,11 @@ void       (*glsym_glStartTiling)          (GLuint a, GLuint b, GLuint c, GLuint
 void       (*glsym_glEndTiling)            (GLuint a) = NULL;
 
 #ifdef GL_GLES
+
+# ifndef GL_LINE_SMOOTH
+#  define GL_LINE_SMOOTH 0x0B20
+# endif
+
 // just used for finding symbols :)
 typedef void (*_eng_fn) (void);