diff options
author | Michael Bien <[email protected]> | 2010-01-25 21:14:26 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-25 21:14:26 +0100 |
commit | 22a5f55a5d0e4215eacda6dbf01b34cec47a5bf0 (patch) | |
tree | b838b8121715fb99e42231264ab050d059ecb317 /src/com/mbien/opencl/CLGLContext.java | |
parent | 3ff3ea603ce0e3b0ac8fed74ce57edc2314a3dba (diff) |
more direct NIO.
Diffstat (limited to 'src/com/mbien/opencl/CLGLContext.java')
-rw-r--r-- | src/com/mbien/opencl/CLGLContext.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLGLContext.java b/src/com/mbien/opencl/CLGLContext.java index 03367a35..a76c15ab 100644 --- a/src/com/mbien/opencl/CLGLContext.java +++ b/src/com/mbien/opencl/CLGLContext.java @@ -2,11 +2,11 @@ package com.mbien.opencl; import java.nio.Buffer; import com.mbien.opencl.CLMemory.Mem; +import com.sun.gluegen.runtime.PointerBuffer; import com.sun.opengl.impl.GLContextImpl; import com.sun.opengl.impl.macosx.cgl.MacOSXCGLContext; import com.sun.opengl.impl.windows.wgl.WindowsWGLContext; import com.sun.opengl.impl.x11.glx.X11GLXContext; -import java.nio.LongBuffer; import javax.media.nativewindow.DefaultGraphicsConfiguration; import javax.media.opengl.GLContext; @@ -52,7 +52,7 @@ public final class CLGLContext extends CLContext { DefaultGraphicsConfiguration config = (DefaultGraphicsConfiguration)ctxImpl.getDrawableImpl() .getNativeWindow().getGraphicsConfiguration().getNativeGraphicsConfiguration(); - LongBuffer properties = LongBuffer.allocate(5); + PointerBuffer properties = PointerBuffer.allocateDirect(5); if(glContext instanceof X11GLXContext) { long handle = config.getScreen().getDevice().getHandle(); glID = ((X11GLXContext)glContext).getContext(); |