Skip to content

Instantly share code, notes, and snippets.

@tru
Created November 3, 2013 14:05
Show Gist options
  • Select an option

  • Save tru/7290571 to your computer and use it in GitHub Desktop.

Select an option

Save tru/7290571 to your computer and use it in GitHub Desktop.
--- src/video/quartz/SDL_QuartzWindow.m.orig 2013-10-31 04:29:45.000000000 -0700
+++ src/video/quartz/SDL_QuartzWindow.m 2013-10-31 04:30:05.000000000 -0700
@@ -87,7 +87,7 @@
SDL_VideoDevice *this = (SDL_VideoDevice*)current_video;
/* make sure pixels are fully opaque */
- if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
+ if ( SDL_VideoSurface && ! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
QZ_SetPortAlphaOpaque ();
/* save current visible SDL surface */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment