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/WGL.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/WGL.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/WGL.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/Common/GL/GLInterface/WGL.cpp b/Source/Core/Common/GL/GLInterface/WGL.cpp index 3e500f5866..4d4647e838 100644 --- a/Source/Core/Common/GL/GLInterface/WGL.cpp +++ b/Source/Core/Common/GL/GLInterface/WGL.cpp @@ -200,7 +200,7 @@ bool cInterfaceWGL::PeekMessages() // Create rendering window. // Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize() -bool cInterfaceWGL::Create(void* window_handle, bool core) +bool cInterfaceWGL::Create(void* window_handle, bool stereo, bool core) { if (!window_handle) return false; @@ -219,12 +219,14 @@ bool cInterfaceWGL::Create(void* window_handle, bool core) s_backbuffer_width = twidth; s_backbuffer_height = theight; - static constexpr PIXELFORMATDESCRIPTOR pfd = { + const DWORD stereo_flag = stereo ? PFD_STEREO : 0; + static const PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), // Size Of This Pixel Format Descriptor 1, // Version Number PFD_DRAW_TO_WINDOW | // Format Must Support Window PFD_SUPPORT_OPENGL | // Format Must Support OpenGL - PFD_DOUBLEBUFFER, // Must Support Double Buffering + PFD_DOUBLEBUFFER | // Must Support Double Buffering + stereo_flag, // Could Support Quad Buffering PFD_TYPE_RGBA, // Request An RGBA Format 32, // Select Our Color Depth 0, |
