aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/macosx/cgl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-13 23:17:56 +0100
committerSven Gothel <[email protected]>2012-02-13 23:17:56 +0100
commit0da7eeff106c1a2bf9e730c504a09e38360f141e (patch)
tree3af86256e48a5fbda6b362aebf457e11fcb71538 /src/jogl/classes/jogamp/opengl/macosx/cgl
parent5aff72256a49af51c002a07526174b23cc040b6e (diff)
Enhance ExtensionAvailabilityCache ; Expose extension count in GLContext (and clean up)
- GLContext - Expose isFunctionAvailable(), isExtensionAvailable(), getPlatformExtensionCount(), getGLExtensionCount() - sort methods a bit ExtensionAvailabilityCache: - Favor StringBuilder instead of StringBuffer (faster) - Resuse set's - Hold dedicated counts of extensions, platform and GL
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl')
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java
index 1503aa73d..279a5b9d7 100644
--- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java
+++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java
@@ -322,8 +322,8 @@ public abstract class MacOSXCGLContext extends GLContextImpl
}
}
- protected final StringBuffer getPlatformExtensionsStringImpl() {
- return new StringBuffer();
+ protected final StringBuilder getPlatformExtensionsStringImpl() {
+ return new StringBuilder();
}
public boolean isExtensionAvailable(String glExtensionName) {