소스 검색

Certain dds texture lack the DDSCAPS_TEXTURE-flag, but are still recognized by programs like IrfanView and can also be loaded in the engine.

This commit weakens the check for this flag: Instead of throwing an exception, a warning is logged.
Sebastian Weiß 8 년 전
부모
커밋
a3cd3cbb04
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java

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

@@ -203,9 +203,9 @@ public class DDSLoader implements AssetLoader {
         texture3D = false;
 
         if (!directx10) {
-            if (!is(caps1, DDSCAPS_TEXTURE)) {
-                throw new IOException("File is not a texture");
-            }
+//            if (!is(caps1, DDSCAPS_TEXTURE)) {
+//                throw new IOException("File is not a texture");
+//            }
 
             if (depth <= 0) {
                 depth = 1;