diff options
Diffstat (limited to 'make')
-rw-r--r-- | make/gl-impl-CustomJavaCode.java | 2 |
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; } |