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. --- .../jogl/acore/TestGLAutoDrawableFactoryGLProfileDeviceNEWT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryGLProfileDeviceNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryGLProfileDeviceNEWT.java index d940510cb..fe3ba91e3 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryGLProfileDeviceNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryGLProfileDeviceNEWT.java @@ -185,7 +185,7 @@ public class TestGLAutoDrawableFactoryGLProfileDeviceNEWT extends UITestCase { } @Test - public void test11ES2OnGL() throws InterruptedException { + public void test11ES2OnDesktop() throws InterruptedException { final GLDrawableFactory factory = GLDrawableFactory.getDesktopFactory(); if( null == factory ) { System.err.println("Desktop Factory n/a"); @@ -207,7 +207,7 @@ public class TestGLAutoDrawableFactoryGLProfileDeviceNEWT extends UITestCase { } @Test - public void test12GLOnGL() throws InterruptedException { + public void test12GLOnDesktop() throws InterruptedException { final GLDrawableFactory factory = GLDrawableFactory.getDesktopFactory(); if( null == factory ) { System.err.println("Desktop Factory n/a"); -- cgit v1.2.3