src/video/quartz/SDL_QuartzGL.m
changeset 770 ac44ddb84f6f
parent 761 c5b2b6d2d1fe
child 857 ce05e92d909b
equal deleted inserted replaced
769:b8d311d90021 770:ac44ddb84f6f
    20     slouken@libsdl.org
    20     slouken@libsdl.org
    21 */
    21 */
    22 
    22 
    23 #include "SDL_QuartzVideo.h"
    23 #include "SDL_QuartzVideo.h"
    24 
    24 
    25 /* 
       
    26     This is a workaround to directly access NSOpenGLContext's CGL context
       
    27     We need this to check for errors NSOpenGLContext doesn't support
       
    28 */
       
    29 @interface NSOpenGLContext (CGLContextAccess)
       
    30 - (CGLContextObj) cglContext;
       
    31 @end
       
    32 
    25 
    33 @implementation NSOpenGLContext (CGLContextAccess)
    26 @implementation NSOpenGLContext (CGLContextAccess)
    34 - (CGLContextObj) cglContext;
    27 - (CGLContextObj) cglContext;
    35 {
    28 {
    36     return _contextAuxiliary;
    29     return _contextAuxiliary;