mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
assertion on Window.isCreated
This commit is contained in:
parent
2124b34f59
commit
3cdd9516f3
3 changed files with 9 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
import org.lwjgl.Sys;
|
||||
import org.lwjgl.opengl.Window;
|
||||
|
||||
/**
|
||||
* $Id$
|
||||
|
|
@ -282,6 +283,7 @@ public class Keyboard {
|
|||
* @throws Exception if the keyboard could not be created for any reason
|
||||
*/
|
||||
public static void create() throws Exception {
|
||||
assert Window.isCreated() : "Window must be created prior to creating keyboard";
|
||||
if (!initialized)
|
||||
initialize();
|
||||
if (created)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue