evas-gl-drm: Fix T2158: compile fails when --with-opengl=full is passed
authorChris Michael <cp.michael@samsung.com>
Sun, 1 Mar 2015 15:49:10 +0000 (10:49 -0500)
committerChris Michael <cp.michael@samsung.com>
Sun, 1 Mar 2015 15:49:10 +0000 (10:49 -0500)
Summary: This fixes compile for the gl_drm engine if
--with-opengl=full is passed on the cmd line. These changes are
based on the diff provided by spotrh in the above ticket.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/gl_drm/evas_drm_main.c
src/modules/evas/engines/gl_drm/evas_engine.h

index d0fe125..9918673 100644 (file)
@@ -224,8 +224,10 @@ eng_window_new(Evas_Engine_Info_GL_Drm *info, Evas *e, struct gbm_device *gbm, s
         return NULL;
      }
 
+#ifdef GL_GLES
    gw->gl_context->egldisp = gw->egl_disp;
    gw->gl_context->eglctxt = gw->egl_context[0];
+#endif
 
    eng_window_use(gw);
    glsym_evas_gl_common_context_resize(gw->gl_context, w, h, rot);
index 47add69..9b436f8 100644 (file)
@@ -10,6 +10,8 @@
 
 #define GL_GLEXT_PROTOTYPES
 #include <EGL/egl.h>
+#include <EGL/eglext.h>
+#include <EGL/eglmesaext.h>
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 #include "../gl_generic/Evas_Engine_GL_Generic.h"