diff --git a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp index 53475b14..5abe36fd 100644 --- a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp +++ b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp @@ -107,7 +107,7 @@ namespace MobileGL { const auto* srcData = static_cast(processedPixels); Uint8* destData = data.data(); - if (!data.size()) { + if (data.empty()) { SizeT totalSize = mipmap.size.x() * mipmap.size.y() * bytesPerPixel; data.resize(totalSize); }