diff options
| author | Jules Blok <jules.blok@gmail.com> | 2017-07-06 01:26:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-06 01:26:06 +0200 |
| commit | 29cc009706f133aac39ebaa7003d37555b926109 (patch) | |
| tree | e95a51c7ea5abd471be45e00c98f11b308c21537 /Source/Core/Common/GL/GLInterface/GLX.cpp | |
| parent | 421a2c57761d4f51f8bcaf866e17a8c8b38b4cd2 (diff) | |
| parent | 8476d0271d56ef2d49657d31d97d42395585ad3b (diff) | |
Merge pull request #5697 from Armada651/quad-buffer
Implement Quad-Buffered stereoscopy support
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); |
