mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
request PFD_STEREO on demand
This commit is contained in:
parent
7b1b8bb4af
commit
7ed0bfe83a
@ -145,7 +145,7 @@ make_gsg(const FrameBufferProperties &properties,
|
|||||||
// Actually, don't bother with the advanced stuff unless the
|
// Actually, don't bother with the advanced stuff unless the
|
||||||
// requested frame buffer requires multisample, since at the moment
|
// requested frame buffer requires multisample, since at the moment
|
||||||
// that's the only reason we'd need to use the advanced query.
|
// 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();
|
HDC twindow_dc = temp_gsg->get_twindow_dc();
|
||||||
if (twindow_dc != 0) {
|
if (twindow_dc != 0) {
|
||||||
wglMakeCurrent(twindow_dc, temp_gsg->get_context(twindow_dc));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (frame_buffer_mode & FrameBufferProperties::FM_stereo) {
|
||||||
|
want_flags |= PFD_STEREO;
|
||||||
|
}
|
||||||
|
|
||||||
// We have to call DescribePixelFormat() once just to get the
|
// We have to call DescribePixelFormat() once just to get the
|
||||||
// highest pfnum available. Then we can iterate through all of the
|
// highest pfnum available. Then we can iterate through all of the
|
||||||
// pfnums.
|
// pfnums.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user