diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 66f2fc1120..1141a977ed 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 f97c91d72d..41bdc70a19 100644 --- a/gst-libs/gst/gl/gstglfilter.h +++ b/gst-libs/gst/gl/gstglfilter.h @@ -1,4 +1,4 @@ -/* +/* * GStreamer * Copyright (C) 2007 David Schleef * Copyright (C) 2008 Julien Isorce @@ -41,7 +41,7 @@ typedef struct _GstGLFilter GstGLFilter; typedef struct _GstGLFilterClass GstGLFilterClass; -typedef gboolean (*GstGLFilterSetCaps) (GstGLFilter* filter, +typedef gboolean (*GstGLFilterSetCaps) (GstGLFilter* filter, GstCaps* incaps, GstCaps* outcaps); typedef gboolean (*GstGLFilterProcessFunc) (GstGLFilter *filter, GstGLBuffer *inbuf, GstGLBuffer *outbuf); @@ -75,7 +75,7 @@ struct _GstGLFilterClass GstGLFilterSetCaps set_caps; GstGLFilterProcessFunc filter; GstGLFilterOnInitFBO onInitFBO; - + GstGLFilterOnStart onStart; GstGLFilterOnStop onStop; GstGLFilterOnReset onReset; @@ -89,14 +89,16 @@ GType gst_gl_filter_get_type(void); void -gst_gl_filter_render_to_target (GstGLFilter *filter, +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