*** empty log message ***
This commit is contained in:
parent
ee05436c65
commit
7c9f237563
|
@ -230,7 +230,9 @@ public final class Window {
|
||||||
if (!isCreated())
|
if (!isCreated())
|
||||||
throw new IllegalStateException("Cannot update uncreated window");
|
throw new IllegalStateException("Cannot update uncreated window");
|
||||||
nUpdate();
|
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();
|
Util.checkGLError();
|
||||||
swapBuffers();
|
swapBuffers();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue