mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 13:18:31 +09:00
[Fix] (TextureState, GL_Drawing): mark dirty textures to skip uploading unmodified ones
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user