From 323002f10588243be35ebea151a27220e13bfb39 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 3 Mar 2004 14:14:03 +0000 Subject: [PATCH] more sanity asserts --- panda/src/distort/nonlinearImager.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/distort/nonlinearImager.cxx b/panda/src/distort/nonlinearImager.cxx index 1ca3954298..d23475fce1 100644 --- a/panda/src/distort/nonlinearImager.cxx +++ b/panda/src/distort/nonlinearImager.cxx @@ -203,8 +203,9 @@ set_texture_size(int index, int width, int height) { screen._tex_height = height; if (screen._buffer != (GraphicsOutput *)NULL) { - _engine->remove_window(screen._buffer); + bool removed = _engine->remove_window(screen._buffer); screen._buffer = (GraphicsOutput *)NULL; + nassertv(removed); } _stale = true; @@ -249,8 +250,9 @@ set_screen_active(int index, bool active) { // Also remove its buffer. if (screen._buffer != (GraphicsOutput *)NULL) { - _engine->remove_window(screen._buffer); + bool removed = _engine->remove_window(screen._buffer); screen._buffer = (GraphicsOutput *)NULL; + nassertv(removed); } } else {