mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
window: do not draw anything on a created window
this makes it so the window doesn't blink right after creation
This commit is contained in:
parent
b1fd3c00d0
commit
a12f41d44c
@ -239,11 +239,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clearing the front buffer to black to avoid garbage pixels left over
|
|
||||||
// from previous uses of our bit of VRAM
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
|
||||||
_glfwPlatformSwapBuffers(window);
|
|
||||||
|
|
||||||
// Restore the previously current context (or NULL)
|
// Restore the previously current context (or NULL)
|
||||||
_glfwPlatformMakeContextCurrent(previous);
|
_glfwPlatformMakeContextCurrent(previous);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user