Explorar o código

Possible fix for the bug on compressed DDS textures in the JOGL backend

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10743 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
jul..se %!s(int64=12) %!d(string=hai) anos
pai
achega
166373230c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java

+ 2 - 2
engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java

@@ -297,7 +297,7 @@ public class TextureUtil {
                                                 mipWidth,
                                                 mipHeight,
                                                 mipDepth,
-                                                0,
+                                                data.remaining(),
                                                 border,
                                                 data);
                 }else{
@@ -307,7 +307,7 @@ public class TextureUtil {
                                                 glFmt.internalFormat,
                                                 mipWidth,
                                                 mipHeight,
-                                                0,
+                                                data.remaining(),
                                                 border,
                                                 data);
                 }