From 2a83cfc1e1b265512e0061d9d130aab3fc6dcfd7 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Mon, 14 Oct 2013 03:03:09 +0200 Subject: [PATCH] Init: glClear the window as early as possible --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index f85f962..8e27f65 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -83,6 +83,10 @@ int rgssThreadFun(void *userdata) return 0; } + glClearColor(0, 0, 0, 1); + glClear(GL_COLOR_BUFFER_BIT); + SDL_GL_SwapWindow(win); + /* Check for required GL extensions */ for (int i = 0; reqExt[i]; ++i) {