Skip to content
Permalink
Browse files

Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoM…

…ode().
  • Loading branch information
icculus committed Sep 16, 2011
1 parent 4e5b930 commit 7d505f772da7d3df646f7e03ccf9d7faadfc0a71
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/video/quartz/SDL_QuartzVideo.m
@@ -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,

0 comments on commit 7d505f7

Please sign in to comment.