releaseStatesOfGeometry method
Implementation
void releaseStatesOfGeometry(BufferGeometry geometry) {
if (bindingStates[geometry.id] == null) return;
final programMap = bindingStates[geometry.id];
for (final programId in programMap.keys) {
final stateMap = programMap[programId];
for (final wireframe in stateMap.keys) {
deleteVertexArrayObject(stateMap[wireframe]["object"]);
}
stateMap.clear();
}
programMap.clear();
bindingStates.remove(geometry.id);
}