From 66b5af633b4ed0e0e8ea1ba7ee5c609ca341ba8e Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 21 May 2010 16:42:56 +0000 Subject: [PATCH] Oops, minor correction --- panda/src/display/graphicsOutput.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 43b31320fb..a8d9c95a87 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -837,8 +837,10 @@ make_texture_buffer(const string &name, int x_size, int y_size, *fbp, WindowProperties::size(x_size, y_size), flags, get_gsg(), get_host()); - if (buffer != (GraphicsOutput *)NULL && tex != (Texture *)NULL) { - buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy); + if (buffer != (GraphicsOutput *)NULL) { + if (tex != (Texture *)NULL) { + buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy); + } return buffer; }