diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11/glx')
-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; |