comparison src/video/cocoa/SDL_cocoaopengl.m @ 3571:19691cebb866

Default to allow either accelerated or not
author Sam Lantinga <slouken@libsdl.org>
date Tue, 15 Dec 2009 20:53:09 +0000
parents 7812d3e9564e
children 64ce267332c6
comparison
equal deleted inserted replaced
3570:7812d3e9564e 3571:19691cebb866
131 attr[i++] = NSOpenGLPFASamples; 131 attr[i++] = NSOpenGLPFASamples;
132 attr[i++] = _this->gl_config.multisamplesamples; 132 attr[i++] = _this->gl_config.multisamplesamples;
133 attr[i++] = NSOpenGLPFANoRecovery; 133 attr[i++] = NSOpenGLPFANoRecovery;
134 } 134 }
135 135
136 if (_this->gl_config.accelerated) { 136 if (_this->gl_config.accelerated >= 0) {
137 attr[i++] = NSOpenGLPFAAccelerated; 137 if (_this->gl_config.accelerated) {
138 } else { 138 attr[i++] = NSOpenGLPFAAccelerated;
139 attr[i++] = NSOpenGLPFARendererID; 139 } else {
140 attr[i++] = kCGLRendererGenericFloatID; 140 attr[i++] = NSOpenGLPFARendererID;
141 attr[i++] = kCGLRendererGenericFloatID;
142 }
141 } 143 }
142 144
143 attr[i++] = NSOpenGLPFAScreenMask; 145 attr[i++] = NSOpenGLPFAScreenMask;
144 attr[i++] = CGDisplayIDToOpenGLDisplayMask(displaydata->display); 146 attr[i++] = CGDisplayIDToOpenGLDisplayMask(displaydata->display);
145 attr[i] = 0; 147 attr[i] = 0;