diff options
author | clayjohn <claynjohn@gmail.com> | 2023-08-29 14:25:16 +0200 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-08-29 14:25:16 +0200 |
commit | 0045dc204c954edfcc8f15751d4ea54174da7818 (patch) | |
tree | 4901e8c0d5c9f05dc902b109dd3861f30a3f2945 /tests | |
parent | 247c3548d810136ffe9c1694cd76db3236efaa90 (diff) | |
download | redot-engine-0045dc204c954edfcc8f15751d4ea54174da7818.tar.gz |
Revert "Implement loading DDS textures at run-time"
This reverts commit 34ab1c8a36e61b386c210fb908b9ebfa86513149.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/io/test_image.h | 10 | ||||
-rw-r--r-- | tests/data/images/icon.dds | bin | 87536 -> 0 bytes |
2 files changed, 0 insertions, 10 deletions
diff --git a/tests/core/io/test_image.h b/tests/core/io/test_image.h index 1897971113..07c7c04e36 100644 --- a/tests/core/io/test_image.h +++ b/tests/core/io/test_image.h @@ -115,16 +115,6 @@ TEST_CASE("[Image] Saving and loading") { image_bmp->load_bmp_from_buffer(data_bmp) == OK, "The BMP image should load successfully."); - // Load DDS - Ref<Image> image_dds = memnew(Image()); - Ref<FileAccess> f_dds = FileAccess::open(TestUtils::get_data_path("images/icon.dds"), FileAccess::READ, &err); - PackedByteArray data_dds; - data_dds.resize(f_dds->get_length() + 1); - f_dds->get_buffer(data_dds.ptrw(), f_dds->get_length()); - CHECK_MESSAGE( - image_dds->load_dds_from_buffer(data_dds) == OK, - "The DDS image should load successfully."); - // Load JPG Ref<Image> image_jpg = memnew(Image()); Ref<FileAccess> f_jpg = FileAccess::open(TestUtils::get_data_path("images/icon.jpg"), FileAccess::READ, &err); diff --git a/tests/data/images/icon.dds b/tests/data/images/icon.dds Binary files differdeleted file mode 100644 index 8a9de402cb..0000000000 --- a/tests/data/images/icon.dds +++ /dev/null |