Commit cad2a7c8 authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

winemac.drv: Move GL context update code to -viewWillDraw method.

parent 01f027b2
......@@ -491,9 +491,9 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
return YES;
}
- (void) drawRect:(NSRect)rect
- (void) viewWillDraw
{
WineWindow* window = (WineWindow*)[self window];
[super viewWillDraw];
for (WineOpenGLContext* context in pendingGlContexts)
{
......@@ -506,6 +506,11 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
}
[glContexts addObjectsFromArray:pendingGlContexts];
[pendingGlContexts removeAllObjects];
}
- (void) drawRect:(NSRect)rect
{
WineWindow* window = (WineWindow*)[self window];
if ([window contentView] != self)
return;
......
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