Commit ee8e5674 authored by Ellen Dekkers's avatar Ellen Dekkers

GLState: clear all buffers to avoid blending of clear colors with alpha < 1....

GLState: clear all buffers to avoid blending of clear colors with alpha < 1. dont render an initial quad anymore

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10485 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 881e268b
......@@ -204,13 +204,16 @@ void GLState::clearBuffers ()
glPushMatrix();
glLoadIdentity ();
glColor4fv(clear_color_.data());
glBegin (GL_QUADS);
glVertex3f (-1.0, -1.0, 1.0);
glVertex3f (1.0, -1.0, 1.0);
glVertex3f (1.0, 1.0, 1.0);
glVertex3f (-1.0, 1.0, 1.0);
glEnd ();
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
// Rendering a quad? Why???? Using clear now
// glColor4fv(clear_color_.data());
// glBegin (GL_QUADS);
// glVertex3f (-1.0, -1.0, 1.0);
// glVertex3f (1.0, -1.0, 1.0);
// glVertex3f (1.0, 1.0, 1.0);
// glVertex3f (-1.0, 1.0, 1.0);
// glEnd ();
glPopMatrix ();
glMatrixMode(GL_PROJECTION);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment