瀏覽代碼

remove texture restriction

David Rose 17 年之前
父節點
當前提交
1e067f210b
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      panda/src/tinydisplay/tinyGraphicsStateGuardian.cxx

+ 0 - 6
panda/src/tinydisplay/tinyGraphicsStateGuardian.cxx

@@ -1559,12 +1559,6 @@ prepare_texture(Texture *tex) {
       << tex->get_ram_image_compression() << "\n";
     return NULL;
   }
-  if (tex->get_component_type() != Texture::T_unsigned_byte) {
-    tinydisplay_cat.info()
-      << "not loading texture " << tex->get_name() << ": "
-      << tex->get_component_type() << "\n";
-    return NULL;
-  }
 
   TinyTextureContext *gtc = new TinyTextureContext(_prepared_objects, tex);
   gtc->_gltex = (GLTexture *)gl_zalloc(sizeof(GLTexture));