mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gloverlay: Fix unused variable compiler warning when compiling without desktop GL
This commit is contained in:
parent
ce9076f260
commit
b8d64301af
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