diff options
Diffstat (limited to 'src/classes/com/sun/opengl/impl/macosx')
-rw-r--r-- | src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java | 6 | ||||
-rw-r--r-- | src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java | 4 |
2 files changed, 5 insertions, 5 deletions
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 diff --git a/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java b/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java index 038b1d759..a28d945f7 100644 --- a/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java @@ -107,7 +107,7 @@ public class MacOSXPbufferGLDrawable extends MacOSXGLDrawable { protected void createPbuffer() { int renderTarget; - if (capabilities.getOffscreenRenderToTextureRectangle()) { + if (capabilities.getPbufferRenderToTextureRectangle()) { width = initWidth; height = initHeight; renderTarget = GL.GL_TEXTURE_RECTANGLE_EXT; @@ -118,7 +118,7 @@ public class MacOSXPbufferGLDrawable extends MacOSXGLDrawable { } int internalFormat = GL.GL_RGBA; - if (capabilities.getOffscreenFloatingPointBuffers()) { + if (capabilities.getPbufferFloatingPointBuffers()) { // FIXME: want to check availability of GL_APPLE_float_pixels // extension, but need valid OpenGL context in order to do so -- // in worst case would need to create dummy window / GLCanvas |