From: <eli...@us...> - 2008-01-19 09:53:16
|
Revision: 2934 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2934&view=rev Author: elias_naur Date: 2008-01-19 01:53:14 -0800 (Sat, 19 Jan 2008) Log Message: ----------- Only let Display.update() call display_impl.update() once Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2008-01-19 08:57:20 UTC (rev 2933) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2008-01-19 09:53:14 UTC (rev 2934) @@ -618,8 +618,9 @@ if (!isCreated()) throw new IllegalStateException("Display not created"); + processMessages(); // We paint only when the window is visible or dirty - if (isVisible() || isDirty()) { + if (display_impl.isVisible() || display_impl.isDirty()) { try { swapBuffers(); } catch (LWJGLException e) { @@ -627,7 +628,6 @@ } } - processMessages(); pollDevices(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |