From c1eb5de916d57587b8bb51e2c2340f95f8b42f02 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 1 Dec 2014 10:31:47 -0500 Subject: [PATCH] evas-gl: Fix evas-gl to compile for EGL Summary: Evas compilation was broken for --with-opengl=es due to the use of GL_R16 (which is not defined for EGL). NB: This may Not be the Proper fix, but at least it compiles now. @fix Signed-off-by: Chris Michael --- src/modules/evas/engines/gl_common/evas_gl_3d.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/gl_common/evas_gl_3d.c b/src/modules/evas/engines/gl_common/evas_gl_3d.c index 7df3244293..1a704738f1 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_3d.c +++ b/src/modules/evas/engines/gl_common/evas_gl_3d.c @@ -431,7 +431,9 @@ e3d_drawable_new(int w, int h, int alpha, GLenum depth_format, GLenum stencil_fo glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); +#ifndef GL_GLES glTexImage2D(GL_TEXTURE_2D, 0, GL_R16, w, h, 0, GL_RED, GL_UNSIGNED_SHORT, 0); +#endif glGenFramebuffers(1, &fbo); glBindFramebuffer(GL_FRAMEBUFFER, fbo);