|
From: Elias N. <eli...@us...> - 2005-12-29 22:31:55
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14273/src/java/org/lwjgl/opengl Modified Files: Display.java Log Message: Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats Index: Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Display.java,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- Display.java 29 Dec 2005 22:30:14 -0000 1.57 +++ Display.java 29 Dec 2005 22:31:46 -0000 1.58 @@ -646,8 +646,6 @@ * @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) |