From bd4be8b54a43b95d7dec90f6dbd0905987ad7605 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 22 Aug 2019 20:02:54 +0200 Subject: Bug 1383: Final fix: Always test GL3CompatNonCompliant and test on requested version/profile, also .. also, if requested version is within GL3CompatNonCompliant valid range, i.e. < 3.1, the detected actual version will be clipped for valid mapping to the requested data. Here it might be essential to know, that all versions are being 'scanned' via mapGLVersions from high to low. Therefor Version 3.0 would be tried before 2.0 and both will be mapped to the clipped actual version 3.0. The true actual version could be the maximum, however, using the very same would lead to trying an invalid unavailable GLProfile. --- src/jogl/classes/com/jogamp/opengl/GLProfile.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jogl/classes/com/jogamp') diff --git a/src/jogl/classes/com/jogamp/opengl/GLProfile.java b/src/jogl/classes/com/jogamp/opengl/GLProfile.java index 9b96adf71..c52e3136e 100644 --- a/src/jogl/classes/com/jogamp/opengl/GLProfile.java +++ b/src/jogl/classes/com/jogamp/opengl/GLProfile.java @@ -2093,6 +2093,8 @@ public class GLProfile { } else { final GLProfile _mglp = _mappedProfiles.get( profileImpl ); if( null == _mglp ) { + // Bug 1383: We may consider allowing cross mapping here, + // i.e. mapping on actually non-supported (implementation) profiles throw new InternalError("XXX0 profile["+i+"]: "+profile+" -> profileImpl "+profileImpl+" !!! not mapped "); } glProfile = new GLProfile(profile, _mglp, isHardwareRasterizer[0], false /* custom */); -- cgit v1.2.3