Commit c9528f09 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Invalidate cached hasGLDescendant value unconditionally when the view…

winemac: Invalidate cached hasGLDescendant value unconditionally when the view is hidden or unhidden. Even if the (un)hidden view doesn't have attached GL contexts itself, its descendants may. It doesn't make sense not to check them just because this view doesn't have GL contexts. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent adc439b1
......@@ -617,18 +617,14 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
- (void) viewDidHide
{
[super viewDidHide];
if ([self hasGLContext])
[self invalidateHasGLDescendant];
[self invalidateHasGLDescendant];
}
- (void) viewDidUnhide
{
[super viewDidUnhide];
if ([self hasGLContext])
{
[self updateGLContexts:YES];
[self invalidateHasGLDescendant];
}
[self updateGLContexts:YES];
[self invalidateHasGLDescendant];
}
- (void) completeText:(NSString*)text
......
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