From e8fbf3c0738c39005036c50e74dd20e4956f372f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 5 Oct 2009 17:54:51 -0700 Subject: EGL more query config trials; Avoid NPE if no config is chosen --- .../sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com/sun/opengl/impl/windows') diff --git a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java index 844e72841..6baedcc66 100644 --- a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java +++ b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java @@ -435,7 +435,7 @@ public class WindowsWGLGraphicsConfiguration extends DefaultGraphicsConfiguratio res.setOnscreen( 0 != (drawableTypeBits & WINDOW_BIT) ); res.setPBuffer ( 0 != (drawableTypeBits & PBUFFER_BIT) ); } else { - return null; + throw new GLException("WGL DrawableType does not match !!!"); } for (int i = 0; i < niattribs; i++) { -- cgit v1.2.3