diff options
Diffstat (limited to 'src/net/java/games/jogl/impl')
-rw-r--r-- | src/net/java/games/jogl/impl/GLPbufferImpl.java | 17 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/x11/X11PbufferGLDrawable.java | 1 |
2 files changed, 4 insertions, 14 deletions
diff --git a/src/net/java/games/jogl/impl/GLPbufferImpl.java b/src/net/java/games/jogl/impl/GLPbufferImpl.java index 7583abe89..3aa50d7b7 100644 --- a/src/net/java/games/jogl/impl/GLPbufferImpl.java +++ b/src/net/java/games/jogl/impl/GLPbufferImpl.java @@ -55,7 +55,6 @@ public class GLPbufferImpl implements GLPbuffer { private GLDrawableImpl pbufferDrawable; private GLContextImpl context; private GLDrawableHelper drawableHelper = new GLDrawableHelper(); - private boolean isInitialized=false; private int floatMode; public GLPbufferImpl(GLDrawableImpl pbufferDrawable, @@ -108,19 +107,19 @@ public class GLPbufferImpl implements GLPbuffer { } public GL getGL() { - return context.getGL(); + return getContext().getGL(); } public void setGL(GL gl) { - context.setGL(gl); + getContext().setGL(gl); } public GLU getGLU() { - return context.getGLU(); + return getContext().getGLU(); } public void setGLU(GLU glu) { - context.setGLU(glu); + getContext().setGLU(glu); } public void setAutoSwapBufferMode(boolean onOrOff) { @@ -176,13 +175,6 @@ public class GLPbufferImpl implements GLPbuffer { public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) {} - /** Queries initialization status of this pBuffer. - * @return true if initialized - * */ - public boolean isInitialized(){ - return isInitialized; - } - public void destroy() { context.destroy(); pbufferDrawable.destroy(); @@ -225,7 +217,6 @@ public class GLPbufferImpl implements GLPbuffer { class InitAction implements Runnable { public void run() { - isInitialized=true; floatMode = context.getFloatingPointMode(); drawableHelper.init(GLPbufferImpl.this); } diff --git a/src/net/java/games/jogl/impl/x11/X11PbufferGLDrawable.java b/src/net/java/games/jogl/impl/x11/X11PbufferGLDrawable.java index 44c755384..8bbde41da 100644 --- a/src/net/java/games/jogl/impl/x11/X11PbufferGLDrawable.java +++ b/src/net/java/games/jogl/impl/x11/X11PbufferGLDrawable.java @@ -168,7 +168,6 @@ public class X11PbufferGLDrawable extends X11GLDrawable { int screen = 0; // FIXME: provide way to specify this? if (capabilities.getOffscreenFloatingPointBuffers()) { - // FIXME: String glXExtensions = GLX.glXQueryExtensionsString(display, screen); if (glXExtensions == null || glXExtensions.indexOf("GLX_NV_float_buffer") < 0) { |