src/video/cocoa/SDL_cocoaopengl.m
changeset 3571 19691cebb866
parent 3570 7812d3e9564e
child 3685 64ce267332c6
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Tue Dec 15 20:36:31 2009 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Tue Dec 15 20:53:09 2009 +0000
     1.3 @@ -133,11 +133,13 @@
     1.4          attr[i++] = NSOpenGLPFANoRecovery;
     1.5      }
     1.6  
     1.7 -    if (_this->gl_config.accelerated) {
     1.8 -        attr[i++] = NSOpenGLPFAAccelerated;
     1.9 -    } else {
    1.10 -        attr[i++] = NSOpenGLPFARendererID;
    1.11 -        attr[i++] = kCGLRendererGenericFloatID;
    1.12 +    if (_this->gl_config.accelerated >= 0) {
    1.13 +        if (_this->gl_config.accelerated) {
    1.14 +            attr[i++] = NSOpenGLPFAAccelerated;
    1.15 +        } else {
    1.16 +            attr[i++] = NSOpenGLPFARendererID;
    1.17 +            attr[i++] = kCGLRendererGenericFloatID;
    1.18 +        }
    1.19      }
    1.20  
    1.21      attr[i++] = NSOpenGLPFAScreenMask;