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/WGL.cpp | |
| parent | 2ab068d3f2b252ad1f8dead9771d0396d03efbce (diff) | |
OGL: Support Quad-Buffered stereoscopy.
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, |
