X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=glws_egl_xlib.cpp;h=66557815017fda939a5edc4e622b84c7e0ee7459;hb=b682b67d31082f5c86458512ce36cbcf597312d3;hp=c1cb0d9dc626f9b126eae00c1d9aa53a83d011c9;hpb=c58efb0e18f41e8db5522ccbed02f5a6bcca8b51;p=apitrace diff --git a/glws_egl_xlib.cpp b/glws_egl_xlib.cpp index c1cb0d9..6655781 100644 --- a/glws_egl_xlib.cpp +++ b/glws_egl_xlib.cpp @@ -150,7 +150,9 @@ public: ~EglDrawable() { eglDestroySurface(eglDisplay, surface); + eglWaitClient(); XDestroyWindow(display, window); + eglWaitNative(EGL_CORE_NATIVE_ENGINE); } void