David Rose 17 년 전
부모
커밋
641295f884
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      panda/src/display/graphicsOutput.cxx

+ 2 - 1
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;
   }