From a12f41d44c558ab739079877ceb118e84c354516 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Thu, 28 Aug 2014 00:48:15 +0100 Subject: [PATCH] window: do not draw anything on a created window this makes it so the window doesn't blink right after creation --- src/window.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/window.c b/src/window.c index b937d3a24..3a2624490 100644 --- a/src/window.c +++ b/src/window.c @@ -239,11 +239,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 - glClear(GL_COLOR_BUFFER_BIT); - _glfwPlatformSwapBuffers(window); - // Restore the previously current context (or NULL) _glfwPlatformMakeContextCurrent(previous);