gloverlay: Fix unused variable compiler warning when compiling without desktop GL

This commit is contained in:
Vivia Nikolaidou 2014-10-08 21:49:25 +03:00 committed by Tim-Philipp Müller
parent 924e017bda
commit 53213d924e

View file

@ -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 ();
}