summaryrefslogtreecommitdiffstats
path: root/make/gl-impl-CustomJavaCode.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-03-14 16:55:47 +0000
committerKenneth Russel <[email protected]>2006-03-14 16:55:47 +0000
commiteae310a7caea9108f3028430afdafad9fa9bea73 (patch)
treec37a6b695784f81ed11e80fd8c856e7988703f3f /make/gl-impl-CustomJavaCode.java
parent435b9c6ec0fe66c1080d74b05a359143b42e6c33 (diff)
Added position(0) call to returned Buffers from glMapBuffer and
glMapBufferARB on suggestion of John Burkey git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@663 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-CustomJavaCode.java')
-rw-r--r--make/gl-impl-CustomJavaCode.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode.java b/make/gl-impl-CustomJavaCode.java
index 6d5f55159..4e761c3bf 100644
--- a/make/gl-impl-CustomJavaCode.java
+++ b/make/gl-impl-CustomJavaCode.java
@@ -311,6 +311,7 @@ public java.nio.ByteBuffer glMapBuffer(int target, int access) {
_res.order(ByteOrder.nativeOrder());
arbVBOCache.put(key, _res);
}
+ _res.position(0);
return _res;
}
@@ -334,6 +335,7 @@ public java.nio.ByteBuffer glMapBufferARB(int target, int access) {
_res.order(ByteOrder.nativeOrder());
arbVBOCache.put(key, _res);
}
+ _res.position(0);
return _res;
}