Browse Source

log more information when window won't open

David Rose 19 years ago
parent
commit
6c299ce840
1 changed files with 11 additions and 1 deletions
  1. 11 1
      panda/src/display/graphicsEngine.cxx

+ 11 - 1
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);