mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
don't crash
This commit is contained in:
parent
7583ac4861
commit
7f90ceebfb
@ -238,9 +238,8 @@ buildGL(osxGraphicsWindow &window, bool full_screen,
|
|||||||
attrib.push_back(AGL_PBUFFER);
|
attrib.push_back(AGL_PBUFFER);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Request the largest buffer available that meets the minimum
|
// Allow the system to choose the largest buffers requested that
|
||||||
// requirements specified.
|
// meets all our selections.
|
||||||
attrib.push_back(AGL_MINIMUM_POLICY);
|
|
||||||
attrib.push_back(AGL_MAXIMUM_POLICY);
|
attrib.push_back(AGL_MAXIMUM_POLICY);
|
||||||
|
|
||||||
// Terminate the list.
|
// Terminate the list.
|
||||||
@ -271,13 +270,17 @@ buildGL(osxGraphicsWindow &window, bool full_screen,
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
osxdisplay_cat.error()
|
osxdisplay_cat.error()
|
||||||
<< "osxGraphicsStateGuardian::buildG Error Getting Pixel Format \n" ;
|
<< "osxGraphicsStateGuardian::buildG Error Getting Pixel Format\n" ;
|
||||||
|
osxdisplay_cat.error()
|
||||||
|
<< fb_props << "\n";
|
||||||
if(err == noErr) {
|
if(err == noErr) {
|
||||||
err = -1;
|
err = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
describe_pixel_format(fb_props);
|
if (err == noErr) {
|
||||||
|
describe_pixel_format(fb_props);
|
||||||
|
}
|
||||||
|
|
||||||
if (osxdisplay_cat.is_debug()) {
|
if (osxdisplay_cat.is_debug()) {
|
||||||
osxdisplay_cat.debug()
|
osxdisplay_cat.debug()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user