summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorVivia Nikolaidou <n.vivia@gmail.com>2014-10-08 21:49:25 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-10-08 21:49:59 +0300
commitb8d64301af820e38f508eaf1ca319d6d4dd0d9e3 (patch)
tree0e4ab807a75f4045cb03534628b7f7374fc3c1e4 /ext
parentce9076f2602eaa0dd7163c22f991ef6cbd22d059 (diff)
downloadgstreamer-plugins-bad-b8d64301af820e38f508eaf1ca319d6d4dd0d9e3.tar.gz
gloverlay: Fix unused variable compiler warning when compiling without desktop GL
Diffstat (limited to 'ext')
-rw-r--r--ext/gl/gstgloverlay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c
index 86e9597fc..65ceb2b9b 100644
--- a/ext/gl/gstgloverlay.c
+++ b/ext/gl/gstgloverlay.c
@@ -446,12 +446,13 @@ gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff)
{
GstGLOverlay *overlay = GST_GL_OVERLAY (stuff);
GstGLFilter *filter = GST_GL_FILTER (overlay);
- const GstGLFuncs *gl = filter->context->gl_vtable;
GstMapInfo map_info;
guint image_tex;
#if GST_GL_HAVE_OPENGL
if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) {
+ const GstGLFuncs *gl = filter->context->gl_vtable;
+
gl->MatrixMode (GL_PROJECTION);
gl->LoadIdentity ();
}