src/video/cocoa/SDL_cocoaopengl.m
changeset 3570 7812d3e9564e
parent 3057 089a77aebb7d
child 3571 19691cebb866
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Tue Dec 15 20:14:50 2009 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Tue Dec 15 20:36:31 2009 +0000
     1.3 @@ -28,6 +28,7 @@
     1.4  #if SDL_VIDEO_OPENGL_CGL
     1.5  #include <OpenGL/CGLTypes.h>
     1.6  #include <OpenGL/OpenGL.h>
     1.7 +#include <OpenGL/CGLRenderers.h>
     1.8  
     1.9  #include "SDL_loadso.h"
    1.10  #include "SDL_opengl.h"
    1.11 @@ -132,8 +133,11 @@
    1.12          attr[i++] = NSOpenGLPFANoRecovery;
    1.13      }
    1.14  
    1.15 -    if (_this->gl_config.accelerated > 0) {
    1.16 +    if (_this->gl_config.accelerated) {
    1.17          attr[i++] = NSOpenGLPFAAccelerated;
    1.18 +    } else {
    1.19 +        attr[i++] = NSOpenGLPFARendererID;
    1.20 +        attr[i++] = kCGLRendererGenericFloatID;
    1.21      }
    1.22  
    1.23      attr[i++] = NSOpenGLPFAScreenMask;