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: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Ken Thomases 2017-04-20 20:53:16 -05:00 committed by Alexandre Julliard
parent adc439b1a9
commit c9528f0907
1 changed files with 3 additions and 7 deletions

View File

@ -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