Added call to missing glClearColor method in flow classes, this was causing render issues in some platforms.

This commit is contained in:
Luis Ángel San Martín 2015-11-14 17:16:47 +01:00
parent 79d4567701
commit e6064b9126
2 changed files with 3 additions and 2 deletions

View File

@ -325,6 +325,7 @@ void YACReaderFlowGL::paintGL()
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glClearColor(0,0,0,1);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if(numObjects>0)

View File

@ -309,8 +309,8 @@ void YACReaderFlowGL::initializeGL()
void YACReaderFlowGL::paintGL()
{
/*glClearDepth(1.0);
glClearColor(1,1,1,1);*/
/*glClearDepth(1.0);*/
glClearColor(0,0,0,1);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
/*glLoadIdentity();
glTranslatef(0.0, 0.0, -10.0);