Browse Source

missing call to state helper (#27503)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 năm trước cách đây
mục cha
commit
5ddba194fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );
 
 	}