Skip to content

Commit

Permalink
Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoM…
Browse files Browse the repository at this point in the history
…ode().
  • Loading branch information
icculus committed Sep 16, 2011
1 parent 4e5b930 commit 7d505f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -1097,6 +1097,12 @@ other blitting while waiting on the VBL (and hence results in higher framerates)
return NULL;
}

if (qz_window != nil) {
NSGraphicsContext *ctx;
ctx = [NSGraphicsContext graphicsContextWithWindow:qz_window];
[NSGraphicsContext setCurrentContext:ctx];
}

/* Setup the new pixel format */
{
int amask = 0,
Expand Down

0 comments on commit 7d505f7

Please sign in to comment.