render fix

This commit is contained in:
Eduardo Bart
2011-04-17 17:39:03 -03:00
parent 44a7f6ab90
commit 8ef534e7b7
3 changed files with 9 additions and 14 deletions

View File

@@ -41,6 +41,7 @@ void Graphics::init()
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glShadeModel(GL_SMOOTH);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
logInfo("GPU %s", (const char*)glGetString(GL_RENDERER));
logInfo("OpenGL %s", (const char*)glGetString(GL_VERSION));
@@ -115,7 +116,6 @@ void Graphics::restoreViewport()
void Graphics::beginRender()
{
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glLoadIdentity();