aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-30 02:01:28 +0200
committerSven Gothel <[email protected]>2010-03-30 02:01:28 +0200
commit62dcd1a3fe345c4d2c0e42472d2c7646fe224e8f (patch)
tree9841146ffc54d1bd8a675e38a123bf82d019db96 /src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java
parent1a2a54a83a9adb95b4bfe9c337751acbef0cb0d3 (diff)
parent476d1d755b6d9c5650779aedda1265917a6dec6e (diff)
Merge branch 'master' of github.com:mbien/jogl
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java')
-rwxr-xr-xsrc/jogl/classes/com/jogamp/opengl/util/StreamUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java b/src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java
index 294f86303..4cf8cb1f0 100755
--- a/src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/StreamUtil.java
@@ -59,7 +59,7 @@ public class StreamUtil {
public static ByteBuffer readAll2Buffer(InputStream stream) throws IOException {
BytesRead bytesRead = readAllImpl(stream);
- return BufferUtil.newByteBuffer(bytesRead.data, 0, bytesRead.payloadLen);
+ return GLBuffers.newDirectByteBuffer(bytesRead.data, 0, bytesRead.payloadLen);
}
private static BytesRead readAllImpl(InputStream stream) throws IOException {