diff options
author | Michael Bien <[email protected]> | 2010-10-15 14:54:39 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-10-15 14:54:39 +0200 |
commit | 404428d115cf5bb36b4576016a6c1363072336d3 (patch) | |
tree | ff0bdde12c78fa9fa0884c48bef49f2b2e2eb7e6 /src | |
parent | 843360926a2ccd5c92619380e8168dacaf0e4d57 (diff) |
JOGL: getNativeWindow -> getNativeSurface; modified CLGLTest to only use JOGL in one thread.
Diffstat (limited to 'src')
-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 74da453d..ac1e5da7 100644 --- a/src/com/jogamp/opencl/gl/CLGLContext.java +++ b/src/com/jogamp/opencl/gl/CLGLContext.java @@ -133,7 +133,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 displayHandle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle(); + long displayHandle = ctxImpl.getDrawableImpl().getNativeSurface().getDisplayHandle(); properties.put(CL_GL_CONTEXT_KHR).put(glID[0]) .put(CL_GLX_DISPLAY_KHR).put(displayHandle) .put(CL_CONTEXT_PLATFORM).put(platform.ID); @@ -143,7 +143,7 @@ public final class CLGLContext extends CLContext { // context, and the attribute CL_WGL_HDC_KHR should be set to the // HDC handle of the display used to create the OpenGL context." properties = PointerBuffer.allocateDirect(7); - long surfaceHandle = ctxImpl.getDrawableImpl().getNativeWindow().getSurfaceHandle(); + long surfaceHandle = ctxImpl.getDrawableImpl().getNativeSurface().getSurfaceHandle(); properties.put(CL_GL_CONTEXT_KHR).put(glID[0]) .put(CL_WGL_HDC_KHR).put(surfaceHandle) .put(CL_CONTEXT_PLATFORM).put(platform.ID); @@ -163,7 +163,7 @@ 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 displayHandle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle(); + long displayHandle = ctxImpl.getDrawableImpl().getNativeSurface().getDisplayHandle(); properties.put(CL_GL_CONTEXT_KHR).put(glID[0]) .put(CL_EGL_DISPLAY_KHR).put(displayHandle) .put(CL_CONTEXT_PLATFORM).put(platform.ID); |