From 20ba0a191efa525b8574aaa3466ccb660b41633d Mon Sep 17 00:00:00 2001 From: Gerard Ziemski Date: Sun, 20 Jun 2004 18:06:25 +0000 Subject: 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 --- src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3