winemac: Fix failure to render OpenGL on macOS 10.14 (Mojave).
commit654b27823d6b1aa23ca22290cb1d88194cb980d4
authorKen Thomases <ken@codeweavers.com>
Thu, 7 Feb 2019 19:57:22 +0000 (7 13:57 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 7 Feb 2019 21:45:03 +0000 (7 22:45 +0100)
treecd14e573e3261d1d6e535276f53f70594749c8ec
parentcf9b492fec1963cc7e4250faf277dc5fb725cd2e
winemac: Fix failure to render OpenGL on macOS 10.14 (Mojave).

For programs linked against the macOS 10.14 SDK, Mojave makes all view
hierarchies layer-backed.  For views to which OpenGL contexts have been
attached this caused a regression where they sometimes failed to render and
just remain black.  Updating the OpenGL context after the framework has
assigned a layer to our view works around the problem.  Thanks to Elviss
Strazdins on Stack Overflow for the solution
<https://stackoverflow.com/a/52938517/1312143>.

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