https://bugs.winehq.org/show_bug.cgi?id=28869
--- Comment #12 from Ken Thomases ken@codeweavers.com --- Created attachment 47418 --> https://bugs.winehq.org/attachment.cgi?id=47418 Patch to fix
This removes the clearing of the GL context that loses the app's context unrecoverably. It was originally introduced with http://source.winehq.org/git/wine.git/commit/77face22d5365d94b9bfe614ed202692e1523593. It doesn't seem related to the rest of the stuff in that commit, but I may not have followed the logic.
There's a comment that the clearing was necessary to work around driver bugs, but doesn't elaborate. I'm tempted to revert this part of it and see what breaks so it can be fixed the right way and with the appropriate documentation.