mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
fbconfig output
This commit is contained in:
parent
1c04225428
commit
aa713463aa
@ -252,8 +252,15 @@ choose_pixel_format(const FrameBufferProperties &properties,
|
||||
if (configs != 0) {
|
||||
for (int i=0; i<num_configs; i++) {
|
||||
FrameBufferProperties fbprops;
|
||||
bool pbuffer_supported, slow;
|
||||
bool pbuffer_supported = false, slow = false;
|
||||
get_properties_advanced(fbprops, pbuffer_supported, slow, configs[i]);
|
||||
if (glxdisplay_cat.is_debug()) {
|
||||
const char *pbuffertext = pbuffer_supported ? " (pbuffer)" : "";
|
||||
const char *slowtext = slow ? " (slow)" : "";
|
||||
glxdisplay_cat.debug()
|
||||
<< i << ": " << fbprops << pbuffertext << slowtext << "\n";
|
||||
}
|
||||
|
||||
int quality = fbprops.get_quality(properties);
|
||||
if ((quality > 0)&&(slow)) quality -= 10000000;
|
||||
if ((need_pbuffer==0)||(pbuffer_supported)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user