Windows: Clear the window with OpenGL to replace UpdateWindow(HWND) and run message loop once in Display.create().

This commit is contained in:
Elias Naur 2007-01-04 14:12:36 +00:00
parent 97db4ca4b2
commit b7b203d29a
1 changed files with 3 additions and 0 deletions

View File

@ -734,6 +734,9 @@ public final class Display {
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() {