Matt DesLauriers пре 9 година
родитељ
комит
2abf3765ec
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      src/renderers/webgl/WebGLState.js

+ 1 - 6
src/renderers/webgl/WebGLState.js

@@ -60,11 +60,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 	var currentScissor = new THREE.Vector4();
 	var currentScissor = new THREE.Vector4();
 	var currentViewport = new THREE.Vector4();
 	var currentViewport = new THREE.Vector4();
 
 
-	var emptyTexture = gl.createTexture();
-	gl.bindTexture( gl.TEXTURE_2D, emptyTexture );
-	gl.texParameteri( gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR );
-	gl.texImage2D( gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGB, gl.UNSIGNED_BYTE, new Uint8Array( 3 ) );
-
 	this.init = function () {
 	this.init = function () {
 
 
 		this.clearColor( 0, 0, 0, 1 );
 		this.clearColor( 0, 0, 0, 1 );
@@ -591,7 +586,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 
 
 		if ( boundTexture.type !== webglType || boundTexture.texture !== webglTexture ) {
 		if ( boundTexture.type !== webglType || boundTexture.texture !== webglTexture ) {
 
 
-			gl.bindTexture( webglType, webglTexture || emptyTexture );
+			gl.bindTexture( webglType, webglTexture );
 
 
 			boundTexture.type = webglType;
 			boundTexture.type = webglType;
 			boundTexture.texture = webglTexture;
 			boundTexture.texture = webglTexture;