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.
This commit is contained in:
Sebastian Weiß 2017-04-08 21:22:06 +02:00
parent a3cd3cbb04
commit 04b0578173

View File

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