Commit 654b2782 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent cf9b492f
......@@ -747,6 +747,12 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
[super willRemoveSubview:subview];
}
- (void) setLayer:(CALayer*)newLayer
{
[super setLayer:newLayer];
[self updateGLContexts];
}
/*
* ---------- NSTextInputClient methods ----------
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment