diff --git a/src/unix/glegl.cpp b/src/unix/glegl.cpp index fc53bfcc2a..8ec9bab1b1 100644 --- a/src/unix/glegl.cpp +++ b/src/unix/glegl.cpp @@ -611,7 +611,7 @@ void wxGLCanvasEGL::OnRealized() { if ( m_surface != EGL_NO_SURFACE ) { - eglDestroySurface(m_surface, m_display); + eglDestroySurface(m_display, m_surface); m_surface = EGL_NO_SURFACE; }