mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 20:28:32 +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);
|
||||
Uint8* destData = data.data();
|
||||
if (!data.size()) {
|
||||
if (data.empty()) {
|
||||
SizeT totalSize = mipmap.size.x() * mipmap.size.y() * bytesPerPixel;
|
||||
data.resize(totalSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user