From 6c299ce840da4b6c1bc6846bdd6158bcdc542fcc Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 13 Oct 2006 18:06:47 +0000 Subject: [PATCH] log more information when window won't open --- panda/src/display/graphicsEngine.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/panda/src/display/graphicsEngine.cxx b/panda/src/display/graphicsEngine.cxx index 12ece5c8c3..8d5bf88d71 100644 --- a/panda/src/display/graphicsEngine.cxx +++ b/panda/src/display/graphicsEngine.cxx @@ -353,11 +353,21 @@ make_output(GraphicsPipe *pipe, return window; } else { if (flags & GraphicsPipe::BF_fb_props_optional) { - display_cat.warning() << "FrameBufferProperties available less than requested.\n"; + display_cat.warning() + << "FrameBufferProperties available less than requested.\n"; return window; } + display_cat.error() + << "Could not get requested FrameBufferProperties; abandoning window.\n"; + display_cat.error(false) + << " requested: " << fb_prop << "\n" + << " got: " << window->get_fb_properties() << "\n"; } + } else { + display_cat.error() + << "Window wouldn't open; abandoning window.\n"; } + // No good; delete the window and keep trying. bool removed = remove_window(window); nassertr(removed, NULL);