Prechádzať zdrojové kódy

Fix for data texture mip maps uploading to zero level. (#23492)

Fixes #23490
Matej Jan 3 rokov pred
rodič
commit
0f339bb2ab
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

+ 1 - 1
src/renderers/webgl/WebGLTextures.js

@@ -803,7 +803,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 
 						if ( useTexStorage ) {
 						if ( useTexStorage ) {
 
 
-							state.texSubImage2D( _gl.TEXTURE_2D, 0, 0, 0, mipmap.width, mipmap.height, glFormat, glType, mipmap.data );
+							state.texSubImage2D( _gl.TEXTURE_2D, i, 0, 0, mipmap.width, mipmap.height, glFormat, glType, mipmap.data );
 
 
 						} else {
 						} else {