diff -r 6da867fa5429 -r 3387a84ddaba src/gl/partrenderer.cpp --- a/src/gl/partrenderer.cpp Sun Jan 19 02:54:48 2020 +0200 +++ b/src/gl/partrenderer.cpp Sun Jan 19 13:53:07 2020 +0200 @@ -110,17 +110,12 @@ glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); break; } - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glMatrixMode(GL_MODELVIEW); - // clear the drawing buffer. glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST); glEnable(GL_LIGHTING); - // clear the identity matrix. glLoadIdentity(); - // traslate the draw by z = -4.0 - // Note this when you decrease z like -8.0 the drawing will looks far , or smaller. glTranslatef(0.0, 0.0, -4.5 * this->compiler->modelDistance()); glMultMatrixf(padMatrix(this->rotation.toRotationMatrix()).constData()); xyz(glTranslatef, -this->compiler->modelCenter()); @@ -145,7 +140,6 @@ glDisableClientState(GL_NORMAL_ARRAY); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_COLOR_ARRAY); - //glFlush(); const GLenum glError = this->glGetError(); if (glError != GL_NO_ERROR) {