dispose method
void
dispose()
Disposes all resources. The instance must not be used afterwards.
Implementation
void dispose() {
_bg?.dispose(_gl);
_splatPass.dispose(_gl);
_splatSource.dispose(_gl);
_orderTexSvc.dispose(_gl);
_depthSorter.dispose();
try {
_angle.dispose([_targetTexture]);
} catch (e) {
debugPrint('Warning: error disposing target texture: $e');
}
_disposeProfilerQuietly();
}