From e88216bd03a41480b81345ed9afc45ddea5ecfcd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 27 Aug 2015 20:11:14 +0200 Subject: Bug 1200: Fix crash on GNU/Linux x86_64 'NVidia beta driver 355.06' @ probeSurfacelessCtx Since no known NVidia driver is know properly supporting surfaceless context, i.e. current context w/o drawable attached, we set quirk NoSurfacelessCtx for all NVidia drivers until a 'good one' is known! --- src/jogl/classes/jogamp/opengl/GLContextImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/jogl/classes/jogamp') diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index 6fbf4dcde..41b815384 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -2117,6 +2117,16 @@ public abstract class GLContextImpl extends GLContext { } quirks.addQuirk( quirk ); } + } else 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( !esCtx /* && vendorVersion.compareTo(nvSafeVersion) < 0 */ ) { + final int quirk = GLRendererQuirks.NoSurfacelessCtx; + if(DEBUG) { + System.err.print("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: !ES, Vendor " + glVendor +", Renderer " + glRenderer); + } + addStickyQuirkAlways(adevice, quirks, quirk, withinGLVersionsMapping); + } } // -- cgit v1.2.3