https://bugs.winehq.org/show_bug.cgi?id=52236
--- Comment #9 from Henri Verbeet hverbeet@gmail.com --- Created attachment 71548 --> https://bugs.winehq.org/attachment.cgi?id=71548 patch
It looks like that happens because destroy_gl_drawable() ends up destroying "gl->window", but doesn't clear the "client_window" field in the x11drv_win_data structure.
The attached patch gets around it, but I'm not at all confident it's reasonable or correct. It's probably going to require either me reading up on how the OpenGL parts of winex11 work these days, or a look from someone that already understands that code.