aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLSurface.java5
1 files changed, 4 insertions, 1 deletions
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);