From a3cd3cbb047a32061c0fc252ea4044fb4f17ade4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wei=C3=9F?= Date: Sat, 8 Apr 2017 21:18:16 +0200 Subject: [PATCH] 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. --- .../plugins/java/com/jme3/texture/plugins/DDSLoader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java b/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java index 245591c05..c8334e8ab 100644 --- a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java +++ b/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;