mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
framework: fix a debug output not protected by is_debug() check
This commit is contained in:
parent
b9aa4f2448
commit
246e73e325
@ -1334,8 +1334,10 @@ event_window_event(const Event *event, void *data) {
|
||||
// Is this a window we've heard about?
|
||||
int window_index = self->find_window(win);
|
||||
if (window_index == -1) {
|
||||
framework_cat.debug()
|
||||
<< "Ignoring message from unknown window.\n";
|
||||
if (framework_cat.is_debug()) {
|
||||
framework_cat.debug()
|
||||
<< "Ignoring message from unknown window.\n";
|
||||
}
|
||||
|
||||
} else {
|
||||
if (!win->is_valid()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user