Jelajahi Sumber

Mac: Fix cast warning.

Sam Lantinga 11 tahun lalu
induk
melakukan
37509cf3e3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/video/cocoa/SDL_cocoaopengl.m

+ 1 - 1
src/video/cocoa/SDL_cocoaopengl.m

@@ -344,7 +344,7 @@ Cocoa_GL_SwapWindow(_THIS, SDL_Window * window)
 
     pool = [[NSAutoreleasePool alloc] init];
 
-    SDLOpenGLContext* nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
+    SDLOpenGLContext* nscontext = (SDLOpenGLContext*)SDL_GL_GetCurrentContext();
     [nscontext flushBuffer];
     [nscontext updateIfNeeded];