diff options
author | Sven Gothel <[email protected]> | 2009-10-05 17:54:51 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-05 17:54:51 -0700 |
commit | e8fbf3c0738c39005036c50e74dd20e4956f372f (patch) | |
tree | 4f2fa0c44aaec088b5263c31878c0834e4f55c9d /src/jogl/classes/com/sun/opengl/impl/x11/glx | |
parent | 62fb860ffc454fc00ed73f9b6da54bba34a6d64f (diff) |
EGL more query config trials; Avoid NPE if no config is chosen
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/x11/glx')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/impl/x11/glx/X11GLXGraphicsConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |