提交 2abf3765 编写于 作者: M Matt DesLauriers 提交者: Mr.doob

revert empty texture (#8578)

上级 cad40e6a
......@@ -60,11 +60,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
var currentScissor = 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.clearColor( 0, 0, 0, 1 );
......@@ -591,7 +586,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
if ( boundTexture.type !== webglType || boundTexture.texture !== webglTexture ) {
gl.bindTexture( webglType, webglTexture || emptyTexture );
gl.bindTexture( webglType, webglTexture );
boundTexture.type = webglType;
boundTexture.texture = webglTexture;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册