From a4fd5ac3ddff1ae82200e2be207976234e1b57f7 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Fri, 25 Apr 2014 16:46:46 +0200 Subject: [PATCH] evas: fix broken build with OpenGL ES backend. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a temporary fix, once we move to Evas_GL_Image, it shouldn't be needed anymore. Thanks to Cédric "chep" Chépied for reporting the issue. --- src/modules/evas/engines/gl_common/evas_gl_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/evas/engines/gl_common/evas_gl_common.h b/src/modules/evas/engines/gl_common/evas_gl_common.h index 1ca0eec808..e206af5f55 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_common.h +++ b/src/modules/evas/engines/gl_common/evas_gl_common.h @@ -206,6 +206,11 @@ #define EGL_MAP_GL_TEXTURE_OPTION_WRITE_SEC (1<<1) #endif +// Evas_3d require GL_BGR, but that's an extention and will not be necessary once we move to Evas_GL_Image +#ifndef GL_BGR +#define GL_BGR 0x80E0 +#endif + #ifndef GL_COLOR_BUFFER_BIT0_QCOM // if GL_COLOR_BUFFER_BIT0_QCOM just assume the rest arent... saves fluff #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001