Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
*** empty log message ***
- Loading branch information
Showing
with
9 additions
and
7 deletions.
-
+0
−7
src/video/quartz/SDL_QuartzGL.m
-
+9
−0
src/video/quartz/SDL_QuartzVideo.h
|
@@ -22,13 +22,6 @@ |
|
|
|
|
|
#include "SDL_QuartzVideo.h" |
|
|
|
|
|
/* |
|
|
This is a workaround to directly access NSOpenGLContext's CGL context |
|
|
We need this to check for errors NSOpenGLContext doesn't support |
|
|
*/ |
|
|
@interface NSOpenGLContext (CGLContextAccess) |
|
|
- (CGLContextObj) cglContext; |
|
|
@end |
|
|
|
|
|
@implementation NSOpenGLContext (CGLContextAccess) |
|
|
- (CGLContextObj) cglContext; |
|
|
|
@@ -66,6 +66,15 @@ |
|
|
#include "SDL_pixels_c.h" |
|
|
#include "SDL_events_c.h" |
|
|
|
|
|
/* |
|
|
This is a workaround to directly access NSOpenGLContext's CGL context |
|
|
We need this to check for errors NSOpenGLContext doesn't support |
|
|
*/ |
|
|
@interface NSOpenGLContext (CGLContextAccess) |
|
|
- (CGLContextObj) cglContext; |
|
|
@end |
|
|
|
|
|
|
|
|
/* Main driver structure to store required state information */ |
|
|
typedef struct SDL_PrivateVideoData { |
|
|
|
|
|