mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
Windows: Clear the window with OpenGL to replace UpdateWindow(HWND) and run message loop once in Display.create().
This commit is contained in:
parent
97db4ca4b2
commit
b7b203d29a
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue