Using auto instead of span
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user