From 53213d924e51838e70d24dba86a365b5c902920c Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Wed, 8 Oct 2014 21:49:25 +0300 Subject: [PATCH] gloverlay: Fix unused variable compiler warning when compiling without desktop GL --- ext/gl/gstgloverlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c index 86e9597fc8..65ceb2b9b0 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 (); }