From 07bc291382eb76c4dd06a82f78ab3b121cfd9f81 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 31 Aug 2011 15:45:50 +0200 Subject: X11OnscreenGLXDrawable: Mark dead GLX_WINDOW code dead --- src/jogl/classes/jogamp/opengl/x11/glx/X11OnscreenGLXDrawable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes') 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; -- cgit v1.2.3