mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Fixed exception messages
This commit is contained in:
parent
9ccb31416e
commit
95bc8cc4e5
1 changed files with 2 additions and 2 deletions
|
|
@ -598,7 +598,7 @@ public final class Display {
|
|||
*/
|
||||
public void releaseContext() throws LWJGLException {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("No window created to make current");
|
||||
throw new IllegalStateException("Display is not created");
|
||||
if (context.isCurrent())
|
||||
Context.releaseCurrentContext();
|
||||
}
|
||||
|
|
@ -610,7 +610,7 @@ public final class Display {
|
|||
*/
|
||||
public static void makeCurrent() throws LWJGLException {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("No window created to make current");
|
||||
throw new IllegalStateException("Display is not created");
|
||||
context.makeCurrent();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue