mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats
This commit is contained in:
parent
6ea1739399
commit
2a9b8de2fb
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue