Using unique_ptr to properly destroy images

This commit is contained in:
Vladyslav Baranovskyi
2024-12-09 18:01:38 +02:00
parent 524e806c18
commit a465063bae
2 changed files with 24 additions and 34 deletions

View File

@@ -156,7 +156,9 @@ namespace OpenVulkano::Image
}
else
{
throw std::runtime_error(fmt::format("Unhandled DDS texture format: {} ({})", magic_enum::enum_name(ddsImage->format), static_cast<int>(ddsImage->format)));
throw std::runtime_error(fmt::format("Unhandled DDS texture format: {} ({})",
magic_enum::enum_name(ddsImage->format),
static_cast<int>(ddsImage->format)));
}
if (ddsImage->mipmaps.size() == 0)