diff options
author | Sven Gothel <[email protected]> | 2011-08-31 15:45:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-31 15:45:50 +0200 |
commit | 07bc291382eb76c4dd06a82f78ab3b121cfd9f81 (patch) | |
tree | 9aec1c88c4260180fd31964d337ff18e4d9a6055 /src/jogl/classes/jogamp/opengl | |
parent | 6987035cc4dbcabbb677772539d7da780b48eaf4 (diff) |
X11OnscreenGLXDrawable: Mark dead GLX_WINDOW code dead
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java index 9e6ef911e..8ef642322 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java @@ -55,15 +55,17 @@ public class X11OnscreenGLXDrawable extends X11GLXDrawable { useGLXWindow=false; } + @SuppressWarnings("unused") public long getHandle() { - if(useGLXWindow) { + if(USE_GLXWINDOW && useGLXWindow) { return glXWindow; } return getNativeSurface().getSurfaceHandle(); } + @SuppressWarnings("unused") protected void destroyHandle() { - if(0!=glXWindow) { + if(USE_GLXWINDOW && 0!=glXWindow) { GLX.glXDestroyWindow(getNativeSurface().getDisplayHandle(), glXWindow); glXWindow = 0; useGLXWindow=false; |