From 2a9b8de2fba2d28373b7ab036d1110e75f087d6e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 29 Dec 2005 22:31:46 +0000 Subject: [PATCH] Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats --- src/java/org/lwjgl/opengl/Display.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index 93656c19..669a6ec0 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -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)