mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Added call to missing glClearColor method in flow classes, this was causing render issues in some platforms.
This commit is contained in:
parent
79d4567701
commit
e6064b9126
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user