|
|
@@ -370,7 +370,8 @@ choose_pfnum_advanced(const FrameBufferProperties &properties,
|
|
|
memset(pformat, 0, sizeof(pformat));
|
|
|
unsigned int nformats = 0;
|
|
|
if (!wglgsg->_wglChoosePixelFormatARB(window_dc, iattrib_list, fattrib_list,
|
|
|
- max_pformats, pformat, &nformats)) {
|
|
|
+ max_pformats, pformat, &nformats) ||
|
|
|
+ nformats == 0) {
|
|
|
wgldisplay_cat.info()
|
|
|
<< "Couldn't find a suitable advanced pixel format.\n";
|
|
|
return orig_pfnum;
|