Skip to content

Commit

Permalink
Update modules/dds/image_saver_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 Mar 5, 2025
1 parent ae6394f commit 7b6f95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dds/image_saver_dds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ Vector<uint8_t> save_dds_buffer(const Ref<Image> &p_img) {
stream_buffer->put_32(pitch);
stream_buffer->put_32(depth);

uint32_t mipmaps = image->has_mipmaps() ? (image->get_mipmap_count() + 1) : 1;
uint32_t mipmaps = image->get_mipmap_count() + 1;
stream_buffer->put_32(mipmaps);

uint32_t reserved = 0;
Expand Down

0 comments on commit 7b6f95d

Please sign in to comment.