From e0f9ffc75f1fa23f71d5aa5d1b167b390a447589 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 28 Feb 2017 14:33:06 +0100 Subject: [PATCH] GraphicsOpenGL.cpp: in init() call swapBuffers() to fill the screen with black as early as possible (right now there are some issue with WinAPI that displays a white rectangle). --- source/GraphicsOpenGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/GraphicsOpenGL.cpp b/source/GraphicsOpenGL.cpp index 2a08ba5..701e6ff 100644 --- a/source/GraphicsOpenGL.cpp +++ b/source/GraphicsOpenGL.cpp @@ -27,6 +27,8 @@ bool Graphics::init() setClearColor(0.0f, 0.0f, 0.0f); + swapBuffers(); + return true; }