aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-28 02:11:20 +0100
committerSven Gothel <[email protected]>2019-11-28 02:11:20 +0100
commitf6cd403f3f554d37f63c498b4de956229b4c347a (patch)
tree2bbc040afe50be06284d60ab2e09052d869367aa
parentd7469d4fcbc6d92a696b90b52a75a233d4a30e5c (diff)
Bug 1156: Using EGL.eglCreatePlatformWindowSurface(..) crashes on NVIDIA 430.40 on GNU/Linux X11
Avoiding this method for now.
-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);