Explorar o código

Merge pull request #128 from GreenCubes/patch-1

 * Fix issue where using a texture array with pregenerated mipmaps would fail with a GL error.
shadowislord %!s(int64=11) %!d(string=hai) anos
pai
achega
60fa6a7e38

+ 1 - 1
jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/TextureUtil.java

@@ -347,7 +347,7 @@ class TextureUtil {
                     // or upload slice
                     if (index == -1){
                         GL12.glTexImage3D(target,
-                                          0,
+                                          i,
                                           glFmt.internalFormat,
                                           mipWidth,
                                           mipHeight,