Skip to content

Commit

Permalink
Update modules/dds/texture_loader_dds.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: BlueCube3310 <[email protected]>
  • Loading branch information
fire and BlueCube3310 authored Jan 29, 2025
1 parent 6743043 commit 933f881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dds/texture_loader_dds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ static Ref<Resource> _dds_create_texture_from_images(Vector<Ref<Image>> images,

static Vector<Ref<Image>> _dds_load_images_from_buffer(Ref<FileAccess> f, DDSFormat &dds_format, uint32_t &width, uint32_t &height, uint32_t &mipmaps, uint32_t &pitch, uint32_t &flags, uint32_t &layer_count, uint32_t &dds_type, const String &p_path = "") {
ERR_FAIL_COND_V_MSG(f.is_null(), Vector<Ref<Image>>(), vformat("Empty DDS texture file."));
ERR_FAIL_COND_V_MSG(f->get_length(), Vector<Ref<Image>>(), vformat("Empty DDS texture file."));
ERR_FAIL_COND_V_MSG(!f->get_length(), Vector<Ref<Image>>(), vformat("Empty DDS texture file."));

uint32_t magic = f->get_32();
uint32_t hsize = f->get_32();
Expand Down

0 comments on commit 933f881

Please sign in to comment.