Browse Source

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

Mr.doob 10 years ago
parent
commit
e083e74b3a
1 changed files with 4 additions and 0 deletions
  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 ) {