From 7c9f2375631384b5a8a78751473ab33965d7fe89 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Sun, 4 Apr 2004 13:19:54 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/lwjgl/opengl/Window.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/opengl/Window.java b/src/java/org/lwjgl/opengl/Window.java index c67b023e..7a720e1d 100644 --- a/src/java/org/lwjgl/opengl/Window.java +++ b/src/java/org/lwjgl/opengl/Window.java @@ -230,7 +230,9 @@ public final class Window { if (!isCreated()) throw new IllegalStateException("Cannot update uncreated window"); nUpdate(); - if ((isDirty() && isVisible()) || (isActive() && isVisible())) { + + // We paint only when the window is visible, and either dirty or active. + if (isVisible() && (isDirty() || isActive())) { Util.checkGLError(); swapBuffers(); }