Using auto instead of span

This commit is contained in:
Vladyslav Baranovskyi
2024-12-09 18:06:46 +02:00
parent a465063bae
commit 998cd92a7c

View File

@@ -166,7 +166,7 @@ namespace OpenVulkano::Image
throw std::runtime_error("Failed to read an image from a texture with no mipmaps");
}
dds::span texture = ddsImage->mipmaps[0];
auto texture = ddsImage->mipmaps[0];
image->data = Array<uint8_t>(texture.size_bytes());
memcpy(image->data.Data(), texture.data(), texture.size_bytes());