From: <eli...@us...> - 2007-01-04 14:12:41
|
Revision: 2717 http://svn.sourceforge.net/java-game-lib/?rev=2717&view=rev Author: elias_naur Date: 2007-01-04 06:12:36 -0800 (Thu, 04 Jan 2007) Log Message: ----------- Windows: Clear the window with OpenGL to replace UpdateWindow(HWND) and run message loop once in Display.create(). 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 2007-01-04 14:00:45 UTC (rev 2716) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-04 14:12:36 UTC (rev 2717) @@ -734,6 +734,9 @@ GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glLoadIdentity(); GL11.glViewport(0, 0, current_mode.getWidth(), current_mode.getHeight()); + // Clear window to avoid the desktop "showing through" + GL11.glClear(GL11.GL_COLOR_BUFFER_BIT); + update(); } static DisplayImplementation getImplementation() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |