浏览代码

missing call to state helper (#27503)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 年之前
父节点
当前提交
5ddba194fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js

+ 1 - 1
examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js

@@ -398,7 +398,7 @@ class WebGLTextureUtils {
 		const { gl, backend } = this;
 		const { textureGPU, glTextureType } = backend.get( texture );
 
-		gl.bindTexture( glTextureType, textureGPU );
+		backend.state.bindTexture( glTextureType, textureGPU );
 		gl.generateMipmap( glTextureType );
 
 	}