gl/context_egl: pass the vars in the right order to DestroySurface
authorMatthew Waters <ystreet00@gmail.com>
Tue, 27 May 2014 00:47:25 +0000 (10:47 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:41 +0000 (19:31 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=728514

gst-libs/gst/gl/egl/gstglcontext_egl.c

index d3c8d96..2cd1b31 100644 (file)
@@ -447,7 +447,7 @@ gst_gl_context_egl_destroy_context (GstGLContext * context)
   gst_gl_context_egl_activate (context, FALSE);
 
   if (egl->egl_surface)
-    eglDestroySurface (egl->egl_surface, egl->egl_display);
+    eglDestroySurface (egl->egl_display, egl->egl_surface);
 
   if (egl->egl_context)
     eglDestroyContext (egl->egl_display, egl->egl_context);