[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
+1
View File
@@ -31,6 +31,7 @@ struct TextureParams {
GLenum type = GL_UNSIGNED_BYTE;
std::vector<GLubyte> pixelData;
bool hasData = false;
bool dirty = false; // TODO: encapsulate this with an public API to RHI
};
unordered_map<GLint, MipmapLevel> mipmapData;
};