Browse Source

XRManager: Reset XRWebGLBinding on session end (#31835)

* XRManager: Reset XRWebGLBinding on session end

* also reset glBaseLayer and glProjLayer between sessions
harryhjsh 7 months ago
parent
commit
3b4ef52207
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/renderers/common/XRManager.js

+ 3 - 0
src/renderers/common/XRManager.js

@@ -1381,6 +1381,9 @@ function onSessionEnd() {
 
 	this._session = null;
 	this._xrRenderTarget = null;
+	this._glBinding = null;
+	this._glBaseLayer = null;
+	this._glProjLayer = null;
 
 	// switch layers back to emulated
 	if ( this._sessionUsesLayers === true ) {

粤ICP备19079148号