diff options
author | Michael Bien <[email protected]> | 2010-05-31 19:54:09 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-05-31 19:54:09 +0200 |
commit | 90e28734f93e57f6906ec93ba8330e54e55d3238 (patch) | |
tree | d9abb77f87b2818e8bba4373a7443e45393195d7 /src/com/jogamp | |
parent | c5b1dc47f398597a127ebb7cdf72ab324b08a174 (diff) |
use getDisplayHandle for linux and Surface on windows for CLGL context creation.
Diffstat (limited to 'src/com/jogamp')
-rw-r--r-- | src/com/jogamp/opencl/gl/CLGLContext.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/gl/CLGLContext.java b/src/com/jogamp/opencl/gl/CLGLContext.java index 4503a250..93c8015f 100644 --- a/src/com/jogamp/opencl/gl/CLGLContext.java +++ b/src/com/jogamp/opencl/gl/CLGLContext.java @@ -138,7 +138,7 @@ public final class CLGLContext extends CLContext { // set to the Display handle of the X Window System display used to // create the OpenGL context." properties = PointerBuffer.allocateDirect(7); - long handle = ctxImpl.getDrawableImpl().getNativeWindow().getSurfaceHandle(); + long handle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle(); glID[0] = ((X11GLXContext)glContext).getContext(); properties.put(CL_GL_CONTEXT_KHR).put(glID[0]) .put(CL_GLX_DISPLAY_KHR).put(handle) @@ -171,8 +171,8 @@ public final class CLGLContext extends CLContext { // CL_EGL_DISPLAY_KHR should be set to the EGLDisplay handle of the // display used to create the OpenGL ES or OpenGL context." properties = PointerBuffer.allocateDirect(7); - long handle = ctxImpl.getDrawableImpl().getNativeWindow().getSurfaceHandle(); - glID[0] = ((MacOSXCGLContext)glContext).getCGLContext(); + long handle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle(); + glID[0] = ((EGLContext)glContext).getContext(); properties.put(CL_GL_CONTEXT_KHR).put(glID[0]) .put(CL_EGL_DISPLAY_KHR).put(handle) .put(CL_CONTEXT_PLATFORM).put(platform.ID); |