From 0da7eeff106c1a2bf9e730c504a09e38360f141e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 13 Feb 2012 23:17:56 +0100 Subject: 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 --- src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/windows') diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java index b2be87f4f..66c203a44 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java @@ -421,8 +421,8 @@ public class WindowsWGLContext extends GLContextImpl { } } - protected final StringBuffer getPlatformExtensionsStringImpl() { - StringBuffer sb = new StringBuffer(); + protected final StringBuilder getPlatformExtensionsStringImpl() { + StringBuilder sb = new StringBuilder(); if (!wglGetExtensionsStringEXTInitialized) { wglGetExtensionsStringEXTAvailable = (WGL.wglGetProcAddress("wglGetExtensionsStringEXT") != 0); -- cgit v1.2.3