From 49326183a9171b2053c3032c8a747c10136f5765 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 29 Dec 2011 12:45:50 +0000 Subject: [PATCH] it'd be so incredibly useful if GraphicsEngine just outputted what kind of buffer it created as an info message --- panda/src/display/graphicsEngine.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/display/graphicsEngine.cxx b/panda/src/display/graphicsEngine.cxx index a6148cc073..552f6b78bf 100644 --- a/panda/src/display/graphicsEngine.cxx +++ b/panda/src/display/graphicsEngine.cxx @@ -366,6 +366,7 @@ make_output(GraphicsPipe *pipe, buffer->_sort = sort; do_add_window(buffer, threading_model); do_add_gsg(host->get_gsg(), pipe, threading_model); + display_cat.info() << "Created output of type ParasiteBuffer\n"; return buffer; } @@ -377,6 +378,7 @@ make_output(GraphicsPipe *pipe, buffer->_sort = sort; do_add_window(buffer, threading_model); do_add_gsg(host->get_gsg(), pipe, threading_model); + display_cat.info() << "Created output of type ParasiteBuffer\n"; return buffer; } @@ -397,6 +399,9 @@ make_output(GraphicsPipe *pipe, open_windows(); if (window->is_valid()) { do_add_gsg(window->get_gsg(), pipe, threading_model); + display_cat.info() + << "Created output of type " << window->get_type() << "\n"; + if (window->get_fb_properties().subsumes(fb_prop)) { return window; } else { @@ -431,6 +436,7 @@ make_output(GraphicsPipe *pipe, buffer->_sort = sort; do_add_window(buffer, threading_model); do_add_gsg(host->get_gsg(), pipe, threading_model); + display_cat.info() << "Created output of type ParasiteBuffer\n"; return buffer; }