Work around weird compiler bug

This commit is contained in:
rdb 2009-03-17 18:54:05 +00:00
parent 7d2d35c024
commit 95209b9d9a

View File

@ -257,13 +257,13 @@ choose_pixel_format(const FrameBufferProperties &properties,
bool pbuffer_supported, pixmap_supported, slow; bool pbuffer_supported, pixmap_supported, slow;
get_properties_advanced(fbprops, pbuffer_supported, pixmap_supported, get_properties_advanced(fbprops, pbuffer_supported, pixmap_supported,
slow, configs[i]); slow, configs[i]);
if (glxdisplay_cat.is_debug()) { // We're not protecting this code by an is_debug() check, because if we do,
const char *pbuffertext = pbuffer_supported ? " (pbuffer)" : ""; // some weird compiler bug appears and somehow makes the quality always 0.
const char *pixmaptext = pixmap_supported ? " (pixmap)" : ""; const char *pbuffertext = pbuffer_supported ? " (pbuffer)" : "";
const char *slowtext = slow ? " (slow)" : ""; const char *pixmaptext = pixmap_supported ? " (pixmap)" : "";
glxdisplay_cat.debug() const char *slowtext = slow ? " (slow)" : "";
<< i << ": " << fbprops << pbuffertext << pixmaptext << slowtext << "\n"; glxdisplay_cat.debug()
} << i << ": " << fbprops << pbuffertext << pixmaptext << slowtext << "\n";
int quality = fbprops.get_quality(properties); int quality = fbprops.get_quality(properties);
if ((quality > 0)&&(slow)) quality -= 10000000; if ((quality > 0)&&(slow)) quality -= 10000000;