OpenGL hardware acceleration defaults on
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404319
This commit is contained in:
parent
abec9e44fa
commit
fe2b42f86c
6 changed files with 37 additions and 41 deletions
|
@ -28,6 +28,7 @@
|
|||
#if SDL_VIDEO_OPENGL_CGL
|
||||
#include <OpenGL/CGLTypes.h>
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <OpenGL/CGLRenderers.h>
|
||||
|
||||
#include "SDL_loadso.h"
|
||||
#include "SDL_opengl.h"
|
||||
|
@ -132,8 +133,11 @@ Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
|
|||
attr[i++] = NSOpenGLPFANoRecovery;
|
||||
}
|
||||
|
||||
if (_this->gl_config.accelerated > 0) {
|
||||
if (_this->gl_config.accelerated) {
|
||||
attr[i++] = NSOpenGLPFAAccelerated;
|
||||
} else {
|
||||
attr[i++] = NSOpenGLPFARendererID;
|
||||
attr[i++] = kCGLRendererGenericFloatID;
|
||||
}
|
||||
|
||||
attr[i++] = NSOpenGLPFAScreenMask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue