Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats

This commit is contained in:
Elias Naur 2005-12-29 22:31:46 +00:00
parent 6ea1739399
commit 2a9b8de2fb
1 changed files with 0 additions and 2 deletions

View File

@ -646,8 +646,6 @@ public final class Display {
* @throws LWJGLException
*/
public static void create(PixelFormat pixel_format, Drawable shared_drawable) throws LWJGLException {
if (pixel_format == null)
throw new NullPointerException("Pixel format must be non-null");
if (isCreated())
throw new IllegalStateException("Only one LWJGL context may be instantiated at any one time.");
if (pixel_format == null)