From e8fbf3c0738c39005036c50e74dd20e4956f372f Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Mon, 5 Oct 2009 17:54:51 -0700
Subject: EGL more query config trials; Avoid NPE if no config is chosen

---
 .../com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/jogl/classes/com/sun/opengl/impl/x11')

diff --git a/src/jogl/classes/com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java b/src/jogl/classes/com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
index dbf69e865..348664cdd 100644
--- a/src/jogl/classes/com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
+++ b/src/jogl/classes/com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java
@@ -251,7 +251,7 @@ public class X11GLXGraphicsConfiguration extends X11GraphicsConfiguration implem
         res.setOnscreen( 0 != (val & GLX.GLX_WINDOW_BIT) );
         res.setPBuffer ( 0 != (val & GLX.GLX_PBUFFER_BIT) );
     } else {
-        return null;
+        throw new GLException("GLX_DRAWABLE_TYPE does not match !!!");
     }
     res.setDoubleBuffered(glXGetFBConfig(display, fbcfg, GLX.GLX_DOUBLEBUFFER,     tmp, 0) != 0);
     res.setStereo        (glXGetFBConfig(display, fbcfg, GLX.GLX_STEREO,           tmp, 0) != 0);
-- 
cgit v1.2.3