浏览代码

Merge pull request #639 from shamanDevel/DDSLoader-less-constraints

Weakens the flag tests in DDSLoader: some textures lack the DDSCAPS_TEXTURE flag
empirephoenix 8 年之前
父节点
当前提交
0111cddaa5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java

+ 1 - 1
jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java

@@ -204,7 +204,7 @@ public class DDSLoader implements AssetLoader {
 
         if (!directx10) {
             if (!is(caps1, DDSCAPS_TEXTURE)) {
-                throw new IOException("File is not a texture");
+                logger.warning("Texture is missing the DDSCAPS_TEXTURE-flag");
             }
 
             if (depth <= 0) {