aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomJavaCode-gles2.java
diff options
context:
space:
mode:
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gles2.java')
-rwxr-xr-xmake/config/jogl/gl-impl-CustomJavaCode-gles2.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gles2.java b/make/config/jogl/gl-impl-CustomJavaCode-gles2.java
index face06292..bf94eed43 100755
--- a/make/config/jogl/gl-impl-CustomJavaCode-gles2.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gles2.java
@@ -301,8 +301,8 @@ public java.nio.ByteBuffer glMapBuffer(int target, int access) {
ARBVBOKey key = new ARBVBOKey(addr, sz);
java.nio.ByteBuffer _res = (java.nio.ByteBuffer) arbVBOCache.get(key);
if (_res == null) {
- _res = InternalBufferUtils.newDirectByteBuffer(addr, sz);
- BufferUtil.nativeOrder(_res);
+ _res = newDirectByteBuffer(addr, sz);
+ InternalBufferUtil.nativeOrder(_res);
arbVBOCache.put(key, _res);
}
_res.position(0);
@@ -312,6 +312,8 @@ public java.nio.ByteBuffer glMapBuffer(int target, int access) {
/** Encapsulates function pointer for OpenGL function <br>: <code> LPVOID glMapBuffer(GLenum target, GLenum access); </code> */
native private long dispatch_glMapBuffer(int target, int access, long glProcAddress);
+native private ByteBuffer newDirectByteBuffer(long addr, int capacity);
+
public void glClearDepth(double depth) {
glClearDepthf((float)depth);
}