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