summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-15 09:50:12 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-15 09:50:12 +0100
commit204be35fc1fc4aa7325c0c5e6535e6667ff5a582 (patch)
treead8a1cdbbea7d70c6923f26fbc80193f9c1a4f16
parentd9ca0845d92d794e6293acef0602a6eb5bfec1a1 (diff)
parent28a340bf3be201dab67a1bd70b2334ff4325d5b9 (diff)
Merge pull request #73322 from fire/basisu-compress-black
For basisu avoid inserting to the image array twice.
-rw-r--r--modules/gltf/gltf_document.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 028028a103..e3ba290eb2 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -3285,7 +3285,6 @@ Error GLTFDocument::_parse_images(Ref<GLTFState> p_state, const String &p_base_p
tex.instantiate();
tex->set_name(img->get_name());
tex->set_keep_compressed_buffer(true);
- p_state->source_images.push_back(img);
tex->create_from_image(img, PortableCompressedTexture2D::COMPRESSION_MODE_BASIS_UNIVERSAL);
p_state->images.push_back(tex);
p_state->source_images.push_back(img);