aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-28 02:13:26 +0100
committerSven Gothel <[email protected]>2019-11-28 02:13:26 +0100
commit4fe9e1dfa67f4e5d614f48c02ad88e4cdd1ed415 (patch)
tree42ebfd4b0c2563b5255cb1d88983f23135fc579f /src
parentf6cd403f3f554d37f63c498b4de956229b4c347a (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java4
1 files changed, 2 insertions, 2 deletions
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+"]");