diff options
| author | Jules Blok <jules.blok@gmail.com> | 2017-06-26 12:32:09 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2017-07-05 22:43:39 +0200 |
| commit | f3508742ac3ef87ab1093ab284e36034f7639a5f (patch) | |
| tree | 9c12e1fe703df1724a95e82e4532581502c2e889 /Source/Core/Common/GL/GLInterface/GLX.cpp | |
| parent | 2ab068d3f2b252ad1f8dead9771d0396d03efbce (diff) | |
OGL: Support Quad-Buffered stereoscopy.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLX.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/GLX.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Common/GL/GLInterface/GLX.cpp b/Source/Core/Common/GL/GLInterface/GLX.cpp index d3550c688f..f6fea067ef 100644 --- a/Source/Core/Common/GL/GLInterface/GLX.cpp +++ b/Source/Core/Common/GL/GLInterface/GLX.cpp @@ -43,7 +43,7 @@ void cInterfaceGLX::Swap() // Create rendering window. // Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize() -bool cInterfaceGLX::Create(void* window_handle, bool core) +bool cInterfaceGLX::Create(void* window_handle, bool stereo, bool core) { dpy = XOpenDisplay(nullptr); int screen = DefaultScreen(dpy); @@ -87,6 +87,8 @@ bool cInterfaceGLX::Create(void* window_handle, bool core) 0, GLX_DOUBLEBUFFER, True, + GLX_STEREO, + stereo ? True : False, None}; int fbcount = 0; GLXFBConfig* fbc = glXChooseFBConfig(dpy, screen, visual_attribs, &fbcount); |
