[Fix] (MG_State): Make uniformObj.count correct. Disable all freeIds now.

This commit is contained in:
BZLZHH
2025-05-16 23:35:44 +08:00
parent 6901e9584f
commit 354d0882eb
8 changed files with 68 additions and 17 deletions
@@ -32,7 +32,8 @@ GLenum FramebufferState::Delete(GLuint framebuffer) {
if (framebuffer == 0) return GL_INVALID_VALUE;
if (framebuffers_.erase(framebuffer)) {
freeIds_.insert(framebuffer);
// TODO: Prevent the object that uses a freeId from conflicting with legacy object in the backend.
//freeIds_.insert(framebuffer);
for (auto& [target, id] : currentBindings_) {
if (id == framebuffer) id = 0;
}