Move glClear call to context module

This commit is contained in:
Camilla Berglund
2015-10-25 00:35:16 +02:00
parent 678cc54c44
commit f5855968bb
3 changed files with 8 additions and 7 deletions
-5
View File
@@ -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);