mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -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?
|
// Is this a window we've heard about?
|
||||||
int window_index = self->find_window(win);
|
int window_index = self->find_window(win);
|
||||||
if (window_index == -1) {
|
if (window_index == -1) {
|
||||||
framework_cat.debug()
|
if (framework_cat.is_debug()) {
|
||||||
<< "Ignoring message from unknown window.\n";
|
framework_cat.debug()
|
||||||
|
<< "Ignoring message from unknown window.\n";
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (!win->is_valid()) {
|
if (!win->is_valid()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user