From 75f8b255ec26768e0391b9ac68d133fc6ba0d46f Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sun, 3 Jun 2012 17:05:44 -0300 Subject: [PATCH] fix initialization opengl glitch --- src/framework/graphics/graphics.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/framework/graphics/graphics.cpp b/src/framework/graphics/graphics.cpp index ea09d382..67d9fe2d 100644 --- a/src/framework/graphics/graphics.cpp +++ b/src/framework/graphics/graphics.cpp @@ -86,6 +86,10 @@ void Graphics::init() glEnable(GL_CULL_FACE); */ + // clear color buffer + glClearColor(0.0f, 0.0f, 0.0f, 1.0f); + glClear(GL_COLOR_BUFFER_BIT); + // determine max texture size GLint maxTextureSize = 0; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);