aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/util/texture
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-30 07:48:36 +0000
committerSven Gothel <[email protected]>2008-08-30 07:48:36 +0000
commita2ad3cffb74ff1fc3b4f2aae109dff97b09e6a5a (patch)
tree953060167515b3ef4771d2a3921bfa8a878a28ef /src/classes/com/sun/opengl/util/texture
parent4667ad39359ac0f096ad8257bc3e29740493028a (diff)
Refactoring common io code
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1765 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/util/texture')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/texture/TextureIO.java.javase2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/texture/TextureIO.java.javase b/src/classes/com/sun/opengl/util/texture/TextureIO.java.javase
index 567432172..f1a957100 100755
--- a/src/classes/com/sun/opengl/util/texture/TextureIO.java.javase
+++ b/src/classes/com/sun/opengl/util/texture/TextureIO.java.javase
@@ -813,7 +813,7 @@ public class TextureIO {
String fileSuffix) throws IOException {
if (DDS.equals(fileSuffix) ||
DDSImage.isDDSImage(stream)) {
- byte[] data = StreamUtil.readAll(stream);
+ byte[] data = StreamUtil.readAll2Array(stream);
ByteBuffer buf = ByteBuffer.wrap(data);
DDSImage image = DDSImage.read(buf);
return newTextureData(image, internalFormat, pixelFormat, mipmap);