diff options
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 14 |
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() { |