Skip to content

Commit

Permalink
MacOS: fix crash with display.capture() (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 authored Apr 26, 2023
1 parent 2ef4961 commit e3688d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/mac/GLView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,10 @@ - (void)drawRect:(NSRect)rect
{
fRuntime->Render();
}
if([self openGLContext]){
[[self openGLContext] flushBuffer];
}

[[self openGLContext] flushBuffer];
}

- (void)setDelegate:(id< GLViewDelegate >)delegate
Expand Down

0 comments on commit e3688d6

Please # to comment.