dispose method
void
dispose()
Releases GPU resources and resets internal state.
Implementation
void dispose() {
if (_tex != null) {
try {
_gl.deleteTexture(_tex!);
} catch (_) {}
_tex = null;
}
if (_prog != null) {
try {
_gl.deleteProgram(_prog!);
} catch (_) {}
_prog = null;
}
_uBg = _uViewport = _uFocal = _uInvViewRot = _uBgRot = null;
_ready = false;
}