Fixed exception messages

This commit is contained in:
Elias Naur 2006-01-02 14:05:30 +00:00
parent 9ccb31416e
commit 95bc8cc4e5
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}