From 3ac457a3a9074a70bf428bb6a5674b8f70d268b1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 30 Aug 2015 02:30:26 +0200 Subject: Bug 1203: Optimize OpenGL Profile probing/mapping (Skip redundant queries) Via GLDrawableFactory[Impl] the following details are considered while GLContextImpl.mapGLVersions(..): - hasOpenGLDesktopSupport If false, skip OpenGL Desktop queries - hasOpenGLESSupport If false, skip OpenGL ES queries - hasMajorMinorCreateContextARB If false, reduce [maxMajor.maxMinor..minMajor.minMinor] iteration, reducing to [maxMajor..minMajor], usually only one query. --- src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java') diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java b/src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java index 472172c75..dfe6bdd9f 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java @@ -229,6 +229,15 @@ public abstract class GLDrawableFactoryImpl extends GLDrawableFactory { return null; } + /** + * Method returns {@code true} if underlying {@link #createContextARBImpl(long, boolean, int, int, int) ARB context creation} + * supports {@code major} and {@code minor} version number. + *

+ * Otherwise only the {@code major} version number is supported for context creation. + *

+ */ + public abstract boolean hasMajorMinorCreateContextARB(); + /** * Returns the shared device mapped to the device {@link AbstractGraphicsDevice#getConnection()}, * either a preexisting or newly created, or null if creation failed or not supported.
-- cgit v1.2.3