winemac: Track whether a view has ever had an OpenGL context attached.
commitb6a4b2f593503a105dde01e7bd11ffdde243117a
authorKen Thomases <ken@codeweavers.com>
Mon, 8 May 2017 20:31:48 +0000 (8 15:31 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 8 May 2017 21:25:55 +0000 (8 16:25 -0500)
tree582fa59f677982ee60cf129198740303a7210db0
parent24d3795285102170834ee624e3d07036c87005ca
winemac: Track whether a view has ever had an OpenGL context attached.

... rather than whether it currently has one.

This is for OpenGLSurfaceMode=behind.  In that mode, we need to make the window
transparent wherever a GL-rendered view should not be clipped by GDI-rendered
children or sibling views.

Some apps attach a GL context to the view only temporarily, do some rendering,
and then detach it.  But the GL surface remains, with the rendered graphics.
In order for those to show, the window needs to remain transparent even though
none of its views has a GL context currently attached.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m