http://bugs.winehq.org/show_bug.cgi?id=12263
--- Comment #16 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-10 04:42:11 --- Those patches are a method we were considering a long, long time ago on how to implement opengl child window rendering (rendering in small 3d views). Due to lets quickly describe it as incompatibilities between X / win32 that was not the way to go.
We now render to offscreen X windows using the Composite extension. The problem is that at the moment a win32 window is created we don't directly have an X11 window (the creation is delayed for various reasons).
In this case an OpenGL call is made before the parent of the offscreen X11 window is around which causes us to use the X root window. When a composition manager (e.g. compiz) is around that causes issues as it already claimed the root window instead of us, so we get a BadAccess.