diff --git a/gst-libs/gst/gl/gstglutils.c b/gst-libs/gst/gl/gstglutils.c index 403968292a..68b658ef63 100644 --- a/gst-libs/gst/gl/gstglutils.c +++ b/gst-libs/gst/gl/gstglutils.c @@ -97,7 +97,8 @@ gst_gl_display_gen_texture_thread (GstGLDisplay * display, GLuint * pTexture, void gst_gl_display_del_texture_window_cb (GstGLDisplay * display) { - glDeleteTextures (1, del_texture); + const GstGLFuncs *gl = display->gl_vtable; + gl->DeleteTextures (1, del_texture); } /* called in the gl thread */