Преглед на файлове

WebGLRenderer: Removed setTexture hack.

Mr.doob преди 10 години
родител
ревизия
ee36790e8c
променени са 1 файла, в които са добавени 0 реда и са изтрити 7 реда
  1. 0 7
      src/renderers/WebGLRenderer.js

+ 0 - 7
src/renderers/WebGLRenderer.js

@@ -3337,13 +3337,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 	this.setTexture = function ( texture, slot ) {
 	this.setTexture = function ( texture, slot ) {
 
 
-		// if the image has been uploaded into a separate renderer, will need to reupload to this renderer
-		if ( ( texture.image && texture.image.complete !== false ) && texture.__webglInit === true && properties.get( texture ).__webglInit === undefined ) {
-
-			texture.needsUpdate = true;
-
-		}
-
 		if ( texture.needsUpdate === true ) {
 		if ( texture.needsUpdate === true ) {
 
 
 			var image = texture.image;
 			var image = texture.image;