Sfoglia il codice sorgente

force context loss in renderer.dispose

Vladimir Agafonkin 5 anni fa
parent
commit
ba248bcbf0
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/renderers/WebGLRenderer.js

+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -577,6 +577,8 @@ function WebGLRenderer( parameters ) {
 
 		animation.stop();
 
+		this.forceContextLoss();
+
 	};
 
 	// Events