aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/macosx
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-02-16 03:29:11 +0000
committerKenneth Russel <[email protected]>2006-02-16 03:29:11 +0000
commitdd18228ea67b24821570fd1c2f7053d7915b9cd0 (patch)
tree2f5e14866c899156cddaa29c08557819da2c7b13 /src/classes/com/sun/opengl/impl/macosx
parent6014c01879f4cc043a772c5dcba79707e24bb59a (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/macosx')
-rw-r--r--src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLContext.java6
-rw-r--r--src/classes/com/sun/opengl/impl/macosx/MacOSXPbufferGLDrawable.java4
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