From 7ed0bfe83a05cb85ab086df38075d982db3232bf Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 15 Feb 2006 21:54:46 +0000 Subject: [PATCH] request PFD_STEREO on demand --- panda/src/wgldisplay/wglGraphicsPipe.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/wgldisplay/wglGraphicsPipe.cxx b/panda/src/wgldisplay/wglGraphicsPipe.cxx index 5c4b710b5d..6cd7ad12ab 100644 --- a/panda/src/wgldisplay/wglGraphicsPipe.cxx +++ b/panda/src/wgldisplay/wglGraphicsPipe.cxx @@ -145,7 +145,7 @@ make_gsg(const FrameBufferProperties &properties, // Actually, don't bother with the advanced stuff unless the // requested frame buffer requires multisample, since at the moment // that's the only reason we'd need to use the advanced query. - if (frame_buffer_mode & FrameBufferProperties::FM_multisample) { + if (frame_buffer_mode & (FrameBufferProperties::FM_multisample)) { HDC twindow_dc = temp_gsg->get_twindow_dc(); if (twindow_dc != 0) { wglMakeCurrent(twindow_dc, temp_gsg->get_context(twindow_dc)); @@ -360,6 +360,10 @@ try_for_pfnum(HDC hdc, bool hardware, bool software, int frame_buffer_mode, break; } + if (frame_buffer_mode & FrameBufferProperties::FM_stereo) { + want_flags |= PFD_STEREO; + } + // We have to call DescribePixelFormat() once just to get the // highest pfnum available. Then we can iterate through all of the // pfnums.