mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gloverlay: Fix unused variable compiler warning when compiling without desktop GL
This commit is contained in:
parent
924e017bda
commit
53213d924e
1 changed files with 2 additions and 1 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue