From 720ba932c90be7312487ee0efe496dc6348c64c8 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 26 Sep 2014 22:22:06 +1000 Subject: [PATCH] gloverlay: protect desktop gl specific tokens with #if --- ext/gl/gstgloverlay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c index 9af1c301d6..dbbe8dc3a5 100644 --- a/ext/gl/gstgloverlay.c +++ b/ext/gl/gstgloverlay.c @@ -286,10 +286,12 @@ gst_gl_overlay_load_texture (GstGLOverlay * o, GLuint tex, const GstGLFuncs *gl = filter->context->gl_vtable; gfloat x, y, width, height; +#if GST_GL_HAVE_OPENGL if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) { gl->MatrixMode (GL_MODELVIEW); gl->LoadIdentity (); } +#endif gl->Enable (GL_TEXTURE_2D); gl->ActiveTexture (GL_TEXTURE0); @@ -447,10 +449,12 @@ gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff) GstMapInfo map_info; guint image_tex; +#if GST_GL_HAVE_OPENGL if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) { gl->MatrixMode (GL_PROJECTION); gl->LoadIdentity (); } +#endif gst_gl_overlay_load_texture (overlay, texture, FALSE); -- 2.34.1