releaseStatesOfProgram method
void
releaseStatesOfProgram(
- dynamic program
Implementation
void releaseStatesOfProgram(program) {
console.info(" WebGLBindingStates releaseStatesOfProgram ");
for (final geometryId in bindingStates.keys ) {
final programMap = bindingStates[ geometryId ];
if ( programMap[ program.id ] == null ) continue;
final stateMap = programMap[ program.id ];
for ( final wireframe in stateMap.keys ) {
deleteVertexArrayObject( stateMap[ wireframe ]['object'] );
}
(stateMap as Map).clear();
(programMap as Map).remove(program.id);//delete programMap[ program.id ];
}
}