From 166373230c9b1904255758a2c8e2bc08a280e1de Mon Sep 17 00:00:00 2001 From: "jul..se" Date: Sun, 4 Aug 2013 08:09:56 +0000 Subject: [PATCH] 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 --- engine/src/jogl/com/jme3/renderer/jogl/TextureUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }