diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java b/src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java index a35137f15..41366c9a8 100644 --- a/src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java +++ b/src/jogl/classes/jogamp/opengl/ExtensionAvailabilityCache.java @@ -83,6 +83,10 @@ final class ExtensionAvailabilityCache { return initialized && !availableExtensionCache.isEmpty() ; } + final int getSize() { + return initialized ? availableExtensionCache.size() : 0 ; + } + final boolean isExtensionAvailable(String glExtensionName) { initAvailableExtensions(); return availableExtensionCache.contains(mapGLExtensionName(glExtensionName)); |