From 04b0578173ed1f26bcc8aa9f7d3076abc9e4cc71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wei=C3=9F?= Date: Sat, 8 Apr 2017 21:22:06 +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. --- .../src/plugins/java/com/jme3/texture/plugins/DDSLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 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 c8334e8ab..a9c5f6a8f 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,10 @@ public class DDSLoader implements AssetLoader { texture3D = false; if (!directx10) { -// if (!is(caps1, DDSCAPS_TEXTURE)) { + if (!is(caps1, DDSCAPS_TEXTURE)) { + logger.warning("Texture is missing the DDSCAPS_TEXTURE-flag"); // throw new IOException("File is not a texture"); -// } + } if (depth <= 0) { depth = 1;