DarkRadiant: master 3eba251d

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 03.08.2021 19:23 master 0705fce0
Changeset Test and fix handling of invalid DDS files

For some reason DDS errors (such as an invalid header due to missing magic
number) were reported using rError(), but the code then carried on regardless
rather than aborting. We now correctly abandon the loading attempt after
detecting an error, returning a null image pointer.
mod - radiantcore/imagefile/dds.cpp Diff File
mod - test/ImageLoading.cpp Diff File
add - test/resources/tdm/textures/dds/not_a_dds.dds Diff File