Pārlūkot izejas kodu

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

Fixes #23490
Matej Jan 3 gadi atpakaļ
vecāks
revīzija
0f339bb2ab
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 ) {
 
-							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 {