Explorar o código

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

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
e083e74b3a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/renderers/WebGLRenderer.js

+ 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 ) {