evas-gl-common: Fix building when --with-opengl=es
authorChris Michael <cp.michael@samsung.com>
Thu, 19 Mar 2015 13:54:34 +0000 (09:54 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 19 Mar 2015 13:55:52 +0000 (09:55 -0400)
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 <cp.michael@samsung.com>
src/modules/evas/engines/gl_common/evas_gl_3d_renderer.c

index 0c8410e..a5b4e34 100644 (file)
@@ -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)
      {