diff options
author | Kenneth Russel <[email protected]> | 2006-02-16 03:29:11 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-02-16 03:29:11 +0000 |
commit | dd18228ea67b24821570fd1c2f7053d7915b9cd0 (patch) | |
tree | 2f5e14866c899156cddaa29c08557819da2c7b13 /src/classes/com/sun/opengl/impl/x11 | |
parent | 6014c01879f4cc043a772c5dcba79707e24bb59a (diff) |
Renamed "offscreen" capability bits in GLCapabilities to "pbuffer"
capability bits to be more explicit about how they are to be used; no
objections from JSR-231 expert group
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@616 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/x11')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java | 2 | ||||
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java index aa26f133e..257fdab6e 100644 --- a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java +++ b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java @@ -392,7 +392,7 @@ public class X11GLDrawableFactory extends GLDrawableFactoryImpl { res[idx++] = caps.getNumSamples(); } if (pbuffer) { - if (caps.getOffscreenFloatingPointBuffers()) { + if (caps.getPbufferFloatingPointBuffers()) { String glXExtensions = GLX.glXQueryExtensionsString(display, screen); if (glXExtensions == null || glXExtensions.indexOf("GLX_NV_float_buffer") < 0) { diff --git a/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java b/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java index 7ea10055c..76e87ba3b 100644 --- a/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java @@ -65,9 +65,9 @@ public class X11PbufferGLDrawable extends X11GLDrawable { if (DEBUG) { System.out.println("Pbuffer caps on init: " + capabilities + - (capabilities.getOffscreenRenderToTexture() ? " [rtt]" : "") + - (capabilities.getOffscreenRenderToTextureRectangle() ? " [rect]" : "") + - (capabilities.getOffscreenFloatingPointBuffers() ? " [float]" : "")); + (capabilities.getPbufferRenderToTexture() ? " [rtt]" : "") + + (capabilities.getPbufferRenderToTextureRectangle() ? " [rect]" : "") + + (capabilities.getPbufferFloatingPointBuffers() ? " [float]" : "")); } createPbuffer(X11GLDrawableFactory.getDisplayConnection()); @@ -106,11 +106,11 @@ public class X11PbufferGLDrawable extends X11GLDrawable { throw new GLException("Null display"); } - if (capabilities.getOffscreenRenderToTexture()) { + if (capabilities.getPbufferRenderToTexture()) { throw new GLException("Render-to-texture pbuffers not supported yet on X11"); } - if (capabilities.getOffscreenRenderToTextureRectangle()) { + if (capabilities.getPbufferRenderToTextureRectangle()) { throw new GLException("Render-to-texture-rectangle pbuffers not supported yet on X11"); } |