From eae310a7caea9108f3028430afdafad9fa9bea73 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 14 Mar 2006 16:55:47 +0000 Subject: 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 --- make/gl-impl-CustomJavaCode.java | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3