summaryrefslogtreecommitdiff
path: root/ext/gl/gstgloverlay.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2014-09-26 22:22:06 +1000
committerMatthew Waters <matthew@centricular.com>2014-09-26 22:22:06 +1000
commit720ba932c90be7312487ee0efe496dc6348c64c8 (patch)
treecd613a2b20ad3158bcfd405475b865a54deabbf1 /ext/gl/gstgloverlay.c
parenteaa424cec76eae7c7f82dabc51dbff486f1a3fb4 (diff)
downloadgstreamer-plugins-bad-720ba932c90be7312487ee0efe496dc6348c64c8.tar.gz
gloverlay: protect desktop gl specific tokens with #if
Diffstat (limited to 'ext/gl/gstgloverlay.c')
-rw-r--r--ext/gl/gstgloverlay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c
index 9af1c301d..dbbe8dc3a 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);