mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 00:49:48 +00:00
Move glClear call to context module
This commit is contained in:
@@ -200,11 +200,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Clearing the front buffer to black to avoid garbage pixels left over
|
||||
// from previous uses of our bit of VRAM
|
||||
window->Clear(GL_COLOR_BUFFER_BIT);
|
||||
_glfwPlatformSwapBuffers(window);
|
||||
|
||||
// Restore the previously current context (or NULL)
|
||||
_glfwPlatformMakeContextCurrent(previous);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user