mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 05:38:31 +09:00
[Fix] (MG_State): Make uniformObj.count correct. Disable all freeIds now.
This commit is contained in:
@@ -219,7 +219,8 @@ bool BufferState::ValidateGeneratedName(GLuint buffer) {
|
||||
void BufferState::Delete(GLuint buffer) {
|
||||
buffers_.erase(buffer);
|
||||
if (ValidateGeneratedName(buffer))
|
||||
freeId_.emplace_back(buffer);
|
||||
// TODO: Prevent the object that uses a freeId from conflicting with legacy object in the backend.
|
||||
//freeId_.emplace_back(buffer);
|
||||
for (auto& [target, id] : currentBindings_) {
|
||||
if (id == buffer) id = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user