From 95bc8cc4e545b0d0476dbedeedea17c4caf34cd2 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 2 Jan 2006 14:05:30 +0000 Subject: [PATCH] Fixed exception messages --- src/java/org/lwjgl/opengl/Display.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index e7ece097..2ececf75 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -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(); }