mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Chore] (MG_Impl/Texture): use .empty() instead of .size()
This commit is contained in:
@@ -107,7 +107,7 @@ namespace MobileGL {
|
|||||||
|
|
||||||
const auto* srcData = static_cast<const Uint8*>(processedPixels);
|
const auto* srcData = static_cast<const Uint8*>(processedPixels);
|
||||||
Uint8* destData = data.data();
|
Uint8* destData = data.data();
|
||||||
if (!data.size()) {
|
if (data.empty()) {
|
||||||
SizeT totalSize = mipmap.size.x() * mipmap.size.y() * bytesPerPixel;
|
SizeT totalSize = mipmap.size.x() * mipmap.size.y() * bytesPerPixel;
|
||||||
data.resize(totalSize);
|
data.resize(totalSize);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user