summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-05-07 23:28:08 +0200
committerSven Gothel <[email protected]>2013-05-07 23:28:08 +0200
commitda8717097df2afba3fc7e9ef648ce6bc4ebd4f9f (patch)
tree1c0d75510f0763d32816287eb16c2d29030c9a2e /make
parent038896636311c66e70f38066329c601beb0a3866 (diff)
GLX: Put native ByteBuffer to native-order in 'glXGetVisualFromFBConfig' and minor edits (final, same 'nativeOrder()' call style)
Diffstat (limited to 'make')
-rw-r--r--make/config/jogl/glx-CustomJavaCode.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/make/config/jogl/glx-CustomJavaCode.java b/make/config/jogl/glx-CustomJavaCode.java
index ed126a5c9..f3e743930 100644
--- a/make/config/jogl/glx-CustomJavaCode.java
+++ b/make/config/jogl/glx-CustomJavaCode.java
@@ -6,10 +6,9 @@
if (__addr_ == 0) {
throw new GLException("Method \"glXGetVisualFromFBConfig\" not available");
}
- java.nio.ByteBuffer _res;
- _res = dispatch_glXGetVisualFromFBConfig(dpy, config, __addr_);
+ final java.nio.ByteBuffer _res = dispatch_glXGetVisualFromFBConfig(dpy, config, __addr_);
if (_res == null) return null;
- return XVisualInfo.create(_res);
+ return XVisualInfo.create(Buffers.nativeOrder(_res));
}
/** Entry point to C language function: - Alias for: <br> <code> XVisualInfo * glXGetVisualFromFBConfigSGIX, glXGetVisualFromFBConfig(Display * dpy, GLXFBConfig config); </code> */
@@ -29,11 +28,9 @@
if (__addr_ == 0) {
throw new GLException("Method \"glXChooseFBConfig\" not available");
}
- final ByteBuffer _res;
- _res = dispatch_glXChooseFBConfig(dpy, screen, attribList, Buffers.getDirectBufferByteOffset(attribList), nitems, Buffers.getDirectBufferByteOffset(nitems), __addr_);
+ final ByteBuffer _res = dispatch_glXChooseFBConfig(dpy, screen, attribList, Buffers.getDirectBufferByteOffset(attribList), nitems, Buffers.getDirectBufferByteOffset(nitems), __addr_);
if (_res == null) return null;
- Buffers.nativeOrder(_res);
- return PointerBuffer.wrap(_res);
+ return PointerBuffer.wrap(Buffers.nativeOrder(_res));
}
/** Entry point to C language function: <code> GLXFBConfig * glXChooseFBConfig(Display * dpy, int screen, const int * attribList, int * nitems); </code> <br>Part of CORE FUNC
@@ -52,8 +49,7 @@
if (__addr_ == 0) {
throw new GLException("Method \"glXChooseVisual\" not available");
}
- final ByteBuffer _res;
- _res = dispatch_glXChooseVisual(dpy, screen, attribList, Buffers.getDirectBufferByteOffset(attribList), __addr_);
+ final ByteBuffer _res = dispatch_glXChooseVisual(dpy, screen, attribList, Buffers.getDirectBufferByteOffset(attribList), __addr_);
if (_res == null) return null;
return XVisualInfo.create(Buffers.nativeOrder(_res));
}