[Chore] (MG_Impl/Texture): use .empty() instead of .size()

This commit is contained in:
2025-11-22 23:21:36 +08:00
parent 4af61f9c00
commit 363bedb245
@@ -107,7 +107,7 @@ namespace MobileGL {
const auto* srcData = static_cast<const Uint8*>(processedPixels);
Uint8* destData = data.data();
if (!data.size()) {
if (data.empty()) {
SizeT totalSize = mipmap.size.x() * mipmap.size.y() * bytesPerPixel;
data.resize(totalSize);
}