forked from Mirrors/wine-wine
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
parent
adc439b1a9
commit
c9528f0907
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue