Explorar el Código

WebGLRenderer3: Avoid colliding hashes.

Mr.doob hace 12 años
padre
commit
5c803e28ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/renderers/WebGLRenderer3.js

+ 1 - 1
examples/js/renderers/WebGLRenderer3.js

@@ -93,7 +93,7 @@ THREE.WebGLRenderer3 = function ( parameters ) {
 
 	var getBuffer = function ( geometry, material ) {
 
-		var hash = geometry.id.toString() + material.id.toString();
+		var hash = geometry.id.toString() + '+' + material.id.toString();
 
 		if ( buffers[ hash ] !== undefined ) {