summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerard Ziemski <[email protected]>2004-06-20 18:06:25 +0000
committerGerard Ziemski <[email protected]>2004-06-20 18:06:25 +0000
commit20ba0a191efa525b8574aaa3466ccb660b41633d (patch)
treeef3776750eebb9d6a3c0ca8b54905b3f31dcb403 /src
parent8f1783018b2df30d1ba59866cfde9f884da5ad97 (diff)
pbuffers have been implemented in Mac OS X jogl port for some time now, regsiter then as avaialable to developers, not just for internal use
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@133 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
index 22d12b575..292a6bb9d 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
@@ -54,7 +54,7 @@ public abstract class MacOSXGLContext extends GLContext
// Table that holds the addresses of the native C-language entry points for
// OpenGL functions.
private GLProcAddressTable glProcAddressTable;
-
+
public MacOSXGLContext(Component component,
GLCapabilities capabilities,
GLCapabilitiesChooser chooser,
@@ -73,9 +73,9 @@ public abstract class MacOSXGLContext extends GLContext
return glFunctionName;
}
- protected String mapToRealGLExtensionName(String glFunctionName)
+ protected String mapToRealGLExtensionName(String glExtensionName)
{
- return glFunctionName;
+ return glExtensionName;
}
protected boolean isFunctionAvailable(String glFunctionName)
@@ -83,6 +83,14 @@ public abstract class MacOSXGLContext extends GLContext
return super.isFunctionAvailable(glFunctionName);
}
+ public boolean isExtensionAvailable(String glExtensionName) {
+ if (glExtensionName.equals("GL_ARB_pbuffer") ||
+ glExtensionName.equals("GL_ARB_pixel_format")) {
+ return true;
+ }
+ return super.isExtensionAvailable(glExtensionName);
+ }
+
protected abstract boolean isOffscreen();
public int getOffscreenContextBufferedImageType() {