2
0
Эх сурвалжийг харах

WebGLRenderer: Set _currentGeometryGroupHash to -1 after deallocating geometry just in case (temporal hack). Fixes #5421.

Mr.doob 10 жил өмнө
parent
commit
e083e74b3a

+ 4 - 0
src/renderers/WebGLRenderer.js

@@ -706,6 +706,10 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 		}
 		}
 
 
+		// TOFIX: Workaround for deleted geometry being currently bound
+
+		_currentGeometryGroupHash = -1;
+
 	};
 	};
 
 
 	var deallocateTexture = function ( texture ) {
 	var deallocateTexture = function ( texture ) {