mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Merge b61aa94609
into af5b82acf5
This commit is contained in:
commit
c1b446f3b4
@ -200,10 +200,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clearing the front buffer to black to avoid garbage pixels left over
|
// Clear the buffers to black to avoid left over garbage pixels in VRAM
|
||||||
// from previous uses of our bit of VRAM
|
|
||||||
window->Clear(GL_COLOR_BUFFER_BIT);
|
window->Clear(GL_COLOR_BUFFER_BIT);
|
||||||
_glfwPlatformSwapBuffers(window);
|
_glfwPlatformSwapBuffers(window);
|
||||||
|
window->Clear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
// 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