From 4fe9e1dfa67f4e5d614f48c02ad88e4cdd1ed415 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 28 Nov 2019 02:13:26 +0100 Subject: Bug 1200: probeSurfacelessCtx works at least since NVIDIA 430.40. Added this version as the safe version to limit GLRendererQuirks.NoSurfacelessCtx setting. Bug 1200 - JOGL crashes on Debian8 GNU/Linux x86_64 'NVidia beta driver 355.06' @ probeSurfacelessCtx --- src/jogl/classes/jogamp/opengl/GLContextImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index b3625507e..f8ad1be0c 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -2425,8 +2425,8 @@ public abstract class GLContextImpl extends GLContext { } if( isDriverNVIDIAGeForce ) { // Bug 1200: Crash on GNU/Linux x86_64 'NVidia beta driver 355.06' @ probeSurfacelessCtx - // final VersionNumber nvSafeVersion = new VersionNumber(356, 0, 0); // FIXME: Add safe version! - if( !isES && !(adevice instanceof EGLGraphicsDevice) /* && vendorVersion.compareTo(nvSafeVersion) < 0 */ ) { + final VersionNumber nvSafeVersion = new VersionNumber(430, 40, 0); + if( !isES && !(adevice instanceof EGLGraphicsDevice) && vendorVersion.compareTo(nvSafeVersion) < 0 ) { final int quirk = GLRendererQuirks.NoSurfacelessCtx; if(DEBUG) { System.err.print("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: !ES, !EGL, Vendor " + glVendor +", X11 Renderer " + glRenderer+", Version=[vendor " + vendorVersion + ", GL " + glVersion+"]"); -- cgit v1.2.3