Fixed TextureUtil to properly handle mipmapped texture 2d arrays and 3d textures
@@ -307,7 +307,7 @@ class TextureUtil {
// or upload slice
if (index == -1){
GL12.glTexImage3D(target,
- 0,
+ i,
glFmt.internalFormat,
mipWidth,
mipHeight,