diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c
index bec8cbc..14adbf6 100644
--- a/gst-libs/gst/gl/gstglfilter.c
+++ b/gst-libs/gst/gl/gstglfilter.c
@@ -455,6 +455,7 @@ gst_gl_filter_render_to_target (GstGLFilter * filter,
       GST_GL_DISPLAY_PROJECTION_ORTHO2D, data);
 }
 
+#ifndef OPENGL_ES2
 static void
 _draw_with_shader_cb (gint width, gint height, guint texture, gpointer stuff)
 {
@@ -506,3 +507,4 @@ gst_gl_filter_draw_texture (GstGLFilter * filter, GLuint texture)
 
   glEnd ();
 }
+#endif
diff --git a/gst-libs/gst/gl/gstglfilter.h b/gst-libs/gst/gl/gstglfilter.h
index f97c91d..198ca2a 100644
--- a/gst-libs/gst/gl/gstglfilter.h
+++ b/gst-libs/gst/gl/gstglfilter.h
@@ -92,11 +92,14 @@ void
 gst_gl_filter_render_to_target (GstGLFilter *filter, 
 				GLuint input, GLuint target,
 				GLCB func, gpointer data);
+
+#ifndef OPENGL_ES2
 void
 gst_gl_filter_render_to_target_with_shader (GstGLFilter * filter,
                                             GLuint input, GLuint target, GstGLShader *shader);
 
 void gst_gl_filter_draw_texture (GstGLFilter *filter, GLuint texture);
+#endif
 
 G_END_DECLS
 
diff --git a/tests/examples/Makefile.am b/tests/examples/Makefile.am
index ed4cb1d..1429b03 100644
--- a/tests/examples/Makefile.am
+++ b/tests/examples/Makefile.am
@@ -1,5 +1,9 @@
 
+if GL_IS_OPENGL
 SUBDIRS = generic qt wx
+else
+SUBDIRS = 
+endif
 if HAVE_CLUTTER
 SUBDIRS += clutter
 endif
