mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
need to test nformats
This commit is contained in:
parent
837a93bad5
commit
943f213dbb
@ -377,7 +377,8 @@ make_pbuffer(HDC twindow_dc) {
|
|||||||
memset(pformat, 0, sizeof(pformat));
|
memset(pformat, 0, sizeof(pformat));
|
||||||
unsigned int nformats = 0;
|
unsigned int nformats = 0;
|
||||||
if (!wglgsg->_wglChoosePixelFormatARB(twindow_dc, iattrib_list, fattrib_list,
|
if (!wglgsg->_wglChoosePixelFormatARB(twindow_dc, iattrib_list, fattrib_list,
|
||||||
max_pformats, pformat, &nformats)) {
|
max_pformats, pformat, &nformats)
|
||||||
|
|| nformats == 0) {
|
||||||
wgldisplay_cat.info()
|
wgldisplay_cat.info()
|
||||||
<< "Couldn't find a suitable pixel format for creating a pbuffer.\n";
|
<< "Couldn't find a suitable pixel format for creating a pbuffer.\n";
|
||||||
return false;
|
return false;
|
||||||
|
@ -370,7 +370,8 @@ choose_pfnum_advanced(const FrameBufferProperties &properties,
|
|||||||
memset(pformat, 0, sizeof(pformat));
|
memset(pformat, 0, sizeof(pformat));
|
||||||
unsigned int nformats = 0;
|
unsigned int nformats = 0;
|
||||||
if (!wglgsg->_wglChoosePixelFormatARB(window_dc, iattrib_list, fattrib_list,
|
if (!wglgsg->_wglChoosePixelFormatARB(window_dc, iattrib_list, fattrib_list,
|
||||||
max_pformats, pformat, &nformats)) {
|
max_pformats, pformat, &nformats) ||
|
||||||
|
nformats == 0) {
|
||||||
wgldisplay_cat.info()
|
wgldisplay_cat.info()
|
||||||
<< "Couldn't find a suitable advanced pixel format.\n";
|
<< "Couldn't find a suitable advanced pixel format.\n";
|
||||||
return orig_pfnum;
|
return orig_pfnum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user