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

        this.initState();

        if(this.gl && this.extensions['WEBGL_lose_context']) {
            this.extensions['WEBGL_lose_context'].restoreContext();
        }
        else {
            if(!this.gl && !this.production) {
                throwWarning(this.type + ": Could not restore the context because the context is not defined");
            }
            else if(!this.extensions['WEBGL_lose_context'] && !this.production) {
                throwWarning(this.type + ": Could not restore the context because the restore context extension is not defined");
            }

            if(this.onError) {
                this.onError();
            }
        }
    }
Call this method to restore your context
*