提交 427dc339 编写于 作者: M Mr.doob

WebGLState: currentTextureSlot to null.

上级 8b42005f
......@@ -51,7 +51,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS );
var currentTextureSlot = undefined;
var currentTextureSlot = null;
var currentBoundTextures = {};
var currentClearColor = new THREE.Vector4();
......@@ -605,7 +605,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
this.bindTexture = function ( webglType, webglTexture ) {
if ( currentTextureSlot === undefined ) {
if ( currentTextureSlot === null ) {
_this.activeTexture();
......@@ -739,7 +739,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
compressedTextureFormats = null;
currentTextureSlot = undefined;
currentTextureSlot = null;
currentBoundTextures = {};
currentBlending = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册