[Fix] (TextureState, GL_Drawing): mark dirty textures to skip uploading unmodified ones

This commit is contained in:
2025-05-08 20:57:16 +08:00
parent c52e28cc7a
commit 5142f3c72b
3 changed files with 7 additions and 2 deletions
@@ -416,6 +416,9 @@ namespace MG_GL::GL {
}
for (auto& [level, mip] : texObj.params.mipmapData) {
if (!mip.dirty)
continue;
mip.dirty = false;
const void* data = !mip.pixelData.empty() ? mip.pixelData.data() : nullptr;
switch (target) {
case GL_TEXTURE_2D: {