From dd18228ea67b24821570fd1c2f7053d7915b9cd0 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 16 Feb 2006 03:29:11 +0000 Subject: 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 --- src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java') diff --git a/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java b/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java index 048a256ea..a1251bd70 100644 --- a/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java +++ b/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java @@ -58,7 +58,7 @@ public class MacOSXPbufferGLContext extends MacOSXGLContext { int res = super.makeCurrentImpl(); if (res == CONTEXT_CURRENT_NEW) { // Initialize render-to-texture support if requested - boolean rect = drawable.getCapabilities().getOffscreenRenderToTextureRectangle(); + boolean rect = drawable.getCapabilities().getPbufferRenderToTextureRectangle(); GL gl = getGL(); if (rect) { if (!gl.isExtensionAvailable("GL_EXT_texture_rectangle")) { @@ -87,11 +87,11 @@ public class MacOSXPbufferGLContext extends MacOSXGLContext { protected boolean create() { GLCapabilities capabilities = drawable.getCapabilities(); - if (capabilities.getOffscreenFloatingPointBuffers() && + if (capabilities.getPbufferFloatingPointBuffers() && !isTigerOrLater) { throw new GLException("Floating-point pbuffers supported only on OS X 10.4 or later"); } - if (!super.create(true, capabilities.getOffscreenFloatingPointBuffers())) { + if (!super.create(true, capabilities.getPbufferFloatingPointBuffers())) { return false; } // Must now associate the pbuffer with our newly-created context -- cgit v1.2.3