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/windows | |
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/windows')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |