fix main config dir on osx and autodetect ogl version when it build

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2630 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator
2009-03-09 10:43:56 +00:00
parent 2f00c0bda9
commit 9635b50a35
6 changed files with 37 additions and 6 deletions

View File

@ -69,11 +69,12 @@ NSOpenGLContext* cocoaGLInit(int mode)
attr[i++] = mode;
attr[i++] = NSOpenGLPFASamples;
attr[i++] = 1;
#ifdef GL_VERSION_1_2
#warning "your car support ogl 1.2, dolphin wil use software renderer"
//if opengl < 1.3 uncomment this twoo lines to use software renderer
//attr[i++] = NSOpenGLPFARendererID;
//attr[i++] = kCGLRendererGenericFloatID;
attr[i++] = NSOpenGLPFARendererID;
attr[i++] = kCGLRendererGenericFloatID;
#endif
attr[i++] = NSOpenGLPFAScreenMask;
attr[i++] = CGDisplayIDToOpenGLDisplayMask(CGMainDisplayID());