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:
parent
1265f46fed
commit
a3cd3cbb04
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user