--- a/src/GLRenderer.cc Sun Feb 23 20:13:32 2014 +0200 +++ b/src/GLRenderer.cc Mon Feb 24 00:59:57 2014 +0200 @@ -411,16 +411,6 @@ glEnableClientState (GL_VERTEX_ARRAY); glEnableClientState (GL_COLOR_ARRAY); - if (gl_axes) - { - glBindBuffer (GL_ARRAY_BUFFER, g_GLAxes_VBO); - glVertexPointer (3, GL_FLOAT, 0, NULL); - glBindBuffer (GL_ARRAY_BUFFER, g_GLAxes_VBO); - glColorPointer (3, GL_FLOAT, 0, NULL); - glDrawArrays (GL_LINES, 0, 6); - checkGLError(); - } - if (isPicking()) { drawVBOs (vboTriangles, vboPickColors, GL_TRIANGLES); @@ -449,6 +439,16 @@ drawVBOs (vboLines, vboNormalColors, GL_LINES); drawVBOs (vboCondLines, vboNormalColors, GL_LINES); + + if (gl_axes) + { + glBindBuffer (GL_ARRAY_BUFFER, g_GLAxes_VBO); + glVertexPointer (3, GL_FLOAT, 0, NULL); + glBindBuffer (GL_ARRAY_BUFFER, g_GLAxes_VBO); + glColorPointer (3, GL_FLOAT, 0, NULL); + glDrawArrays (GL_LINES, 0, 6); + checkGLError(); + } } glPopMatrix();