From 9009cae5407ef54f5030c1d0fabb1c2919c418bb Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Thu, 9 Jun 2022 11:57:44 -0500 Subject: [PATCH] Fixing -format_only so the uncompressed formats aren't unpacked when this option is used. --- basisu_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basisu_tool.cpp b/basisu_tool.cpp index 544bb5d..08f84e1 100644 --- a/basisu_tool.cpp +++ b/basisu_tool.cpp @@ -2268,7 +2268,8 @@ static bool unpack_and_validate_basis_file( uint32_t max_mipmap_levels = 0; - if (!opts.m_etc1_only) + //if (!opts.m_etc1_only) + if (opts.m_format_only == -1) { // Now unpack to RGBA using the transcoder itself to do the unpacking to raster images for (uint32_t image_index = 0; image_index < fileinfo.m_total_images; image_index++)