From f6cd403f3f554d37f63c498b4de956229b4c347a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 28 Nov 2019 02:11:20 +0100 Subject: Bug 1156: Using EGL.eglCreatePlatformWindowSurface(..) crashes on NVIDIA 430.40 on GNU/Linux X11 Avoiding this method for now. --- src/jogl/classes/jogamp/opengl/egl/EGLSurface.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp/opengl/egl') diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLSurface.java b/src/jogl/classes/jogamp/opengl/egl/EGLSurface.java index 367f83295..885be590a 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLSurface.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLSurface.java @@ -102,7 +102,10 @@ public class EGLSurface extends WrappedSurface { */ public static long eglCreateWindowSurface(final long dpy, final long config, final long win) { final int eglPlatform = EGLDisplayUtil.getEGLPlatformType(true); - if( 0 != eglPlatform ) { + if( false && 0 != eglPlatform ) { + // Not necessarily required and also not used in demo code + // Also causes a crash using NVIDIA 430.40 on GNU/Linux X11 + // TODO: Forward bugreport to related parties? return EGL.eglCreatePlatformWindowSurface(dpy, config, win, null); } else { return EGL.eglCreateWindowSurface(dpy, config, win, null); -- cgit v1.2.3