gl/context_egl: pass the vars in the right order to DestroySurface

https://bugzilla.gnome.org/show_bug.cgi?id=728514
This commit is contained in:
Matthew Waters 2014-05-27 10:47:25 +10:00
parent 3078b3a34c
commit dad342454b

View file

@ -447,7 +447,7 @@ gst_gl_context_egl_destroy_context (GstGLContext * context)
gst_gl_context_egl_activate (context, FALSE); gst_gl_context_egl_activate (context, FALSE);
if (egl->egl_surface) if (egl->egl_surface)
eglDestroySurface (egl->egl_surface, egl->egl_display); eglDestroySurface (egl->egl_display, egl->egl_surface);
if (egl->egl_context) if (egl->egl_context)
eglDestroyContext (egl->egl_display, egl->egl_context); eglDestroyContext (egl->egl_display, egl->egl_context);