diff --git a/engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java b/engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java index 704fb43e5..9e26678d8 100644 --- a/engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java +++ b/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); }