diff options
author | Sven Gothel <[email protected]> | 2008-06-26 08:52:58 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-06-26 08:52:58 +0000 |
commit | 3c73be50b6a5f983865bb7617739ce1370fb5566 (patch) | |
tree | 8cf2490bddfe56a2f9f27e32999a2948a4dd6936 /src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java | |
parent | f287efc004e6932cbb2efdf777798a381994ca48 (diff) |
Unifying NativeWindow's getWindowHandle() and getSurfaceHandle() usage for all platforms.
On platform's where no distinction of window and surface handle exists, e.g. X11,
the window handle is naturally returned by the default 'getSurfaceHandle()' implementation.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1696 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java b/src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java index 9d5e7ac16..446d6f4e5 100644 --- a/src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java +++ b/src/classes/com/sun/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java @@ -85,7 +85,7 @@ public class X11OffscreenGLXDrawable extends X11GLXDrawable { pixmap = 0; throw new GLException("glXCreateGLXPixmap failed"); } - nw.setWindowHandle(drawable); + nw.setSurfaceHandle(drawable); isDoubleBuffered = (X11GLXDrawableFactory.glXGetConfig(dpy, vis, GLX.GLX_DOUBLEBUFFER, new int[1], 0) != 0); if (DEBUG) { System.err.println("Created pixmap " + toHexString(pixmap) + @@ -103,7 +103,7 @@ public class X11OffscreenGLXDrawable extends X11GLXDrawable { try { NativeWindow nw = getNativeWindow(); long display = nw.getDisplayHandle(); - long drawable = nw.getWindowHandle(); + long drawable = nw.getSurfaceHandle(); if (DEBUG) { System.err.println("Destroying pixmap " + toHexString(pixmap) + ", GLXPixmap " + toHexString(drawable) + |