Using unique_ptr to properly destroy images
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user