[core] standardize on uint16_t for texture sizes
This commit is contained in:
@@ -23,7 +23,8 @@ PremultipliedImage decodeWebP(const uint8_t* data, size_t size) {
|
||||
throw std::runtime_error("failed to decode WebP data");
|
||||
}
|
||||
|
||||
UnassociatedImage image { size_t(width), size_t(height), std::move(webp) };
|
||||
UnassociatedImage image{ static_cast<uint16_t>(width), static_cast<uint16_t>(height),
|
||||
std::move(webp) };
|
||||
return util::premultiply(std::move(image));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user