contextLost(event) {
        this.state.isContextLost = true;

        // do not try to restore the context if we're disposing everything!
        if(!this.state.isActive) return;

        event.preventDefault();

        this.nextRender.add(() => this.onContextLost && this.onContextLost());
    }
Called when the WebGL context is lost
*