From 641295f884768f7bde37f22bdaba6ed05a94ad3c Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 8 Aug 2008 23:59:46 +0000 Subject: [PATCH] whoops --- panda/src/display/graphicsOutput.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index a468aa0c03..bf3614708f 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -737,7 +737,8 @@ make_texture_buffer(const string &name, int x_size, int y_size, if (textures_power_2 != ATS_none) { flags |= GraphicsPipe::BF_size_power_2; } - if (tex->get_texture_type() == Texture::TT_cube_map) { + if (tex != (Texture *)NULL && + tex->get_texture_type() == Texture::TT_cube_map) { flags |= GraphicsPipe::BF_size_square; }