Created attachment 54922 [details] [review] Check if the window being destroyed is currently bound to a GLX context, and release the GLX context if necessary GLEAN::Window::~Window calls XDestroyWindow on the currently bound GLX drawable, which causes the subsequent test to explode when it calls glXMakeCurrent and Mesa attempts to flush the outstanding state to the now destroyed window. This manifests as a BadDrawable error from a XPutImage call when using software rendering and causes the basic sanity test to fail.
The patch looks good to me. I'll push it soon.
*** Bug 43317 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.