summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-09-17 19:21:16 +0200
committerflacs <tilkax@gmail.com>2015-09-17 19:21:16 +0200
commite4dfb2f6bf7ca16c575a5723951c5f90868f76d1 (patch)
treefff4f534bf8f72b590c2e316921c0e7d61ff1f93 /Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp
parentedae1d3bcb4383abd344757c4eab13d975a5e153 (diff)
parent48279c18402c04923a683e4a0488f8ad419b9b9a (diff)
Merge pull request #3054 from degasus/master
GLInterface: Fix VideoSW on linux + OSX
Diffstat (limited to 'Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp b/Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp
index 924fdea821..62ee8e5a35 100644
--- a/Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp
+++ b/Source/Core/VideoBackends/OGL/GLInterface/AGL.cpp
@@ -15,7 +15,7 @@ void cInterfaceAGL::Swap()
// Create rendering window.
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
-bool cInterfaceAGL::Create(void *window_handle)
+bool cInterfaceAGL::Create(void *window_handle, bool core)
{
cocoaWin = reinterpret_cast<NSView*>(window_handle);
NSSize size = [cocoaWin frame].size;
@@ -33,7 +33,7 @@ bool cInterfaceAGL::Create(void *window_handle)
s_backbuffer_width = size.width;
s_backbuffer_height = size.height;
- NSOpenGLPixelFormatAttribute attr[] = { NSOpenGLPFADoubleBuffer, NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core, NSOpenGLPFAAccelerated, 0 };
+ NSOpenGLPixelFormatAttribute attr[] = { NSOpenGLPFADoubleBuffer, NSOpenGLPFAOpenGLProfile, NSOpenGLPFAAccelerated, core ? NSOpenGLProfileVersion3_2Core : 0u, 0u };
NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc]
initWithAttributes: attr];
if (fmt == nil)