mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
|
glClearColor(0,0,0,1);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
if(numObjects>0)
|
if(numObjects>0)
|
||||||
|
@ -309,8 +309,8 @@ void YACReaderFlowGL::initializeGL()
|
|||||||
|
|
||||||
void YACReaderFlowGL::paintGL()
|
void YACReaderFlowGL::paintGL()
|
||||||
{
|
{
|
||||||
/*glClearDepth(1.0);
|
/*glClearDepth(1.0);*/
|
||||||
glClearColor(1,1,1,1);*/
|
glClearColor(0,0,0,1);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
/*glLoadIdentity();
|
/*glLoadIdentity();
|
||||||
glTranslatef(0.0, 0.0, -10.0);
|
glTranslatef(0.0, 0.0, -10.0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user