From: Chris Michael Date: Thu, 19 Mar 2015 13:54:34 +0000 (-0400) Subject: evas-gl-common: Fix building when --with-opengl=es X-Git-Tag: v1.14.0-alpha1~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87263cf0bd584fcf76e4ba36b1e16712b21f0f43;p=platform%2Fupstream%2Fefl.git evas-gl-common: Fix building when --with-opengl=es Summary: If we are building for only gles 2.0, then we cannot use glAlphaFunc else we get compile errors. This adds an #ifndef around that block to fix building @fix Signed-off-by: Chris Michael --- diff --git a/src/modules/evas/engines/gl_common/evas_gl_3d_renderer.c b/src/modules/evas/engines/gl_common/evas_gl_3d_renderer.c index 0c8410e..a5b4e34 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_3d_renderer.c +++ b/src/modules/evas/engines/gl_common/evas_gl_3d_renderer.c @@ -348,6 +348,7 @@ e3d_renderer_draw(E3D_Renderer *renderer, E3D_Draw_Data *data) } else glDisable(GL_BLEND); +#ifndef GL_GLES if (data->alpha_test_enabled) { glEnable(GL_ALPHA_TEST); @@ -355,6 +356,7 @@ e3d_renderer_draw(E3D_Renderer *renderer, E3D_Draw_Data *data) (GLclampf)data->alpha_ref_value); } else glDisable(GL_ALPHA_TEST); +#endif if (data->indices) {