mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 15:16:22 +00:00
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:
parent
2f00c0bda9
commit
9635b50a35
6 changed files with 37 additions and 6 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue