# HG changeset patch # User Teemu Piippo # Date 1486677011 -7200 # Node ID c3f07620494e893ec7572dd0e4becdb0b007cb69 # Parent 749fdf61b5cd2ace15af33ac5de611c0b6fb36a5 Axes are not rendered with normals so the normals client state has to be disabled when drawing them. diff -r 749fdf61b5cd -r c3f07620494e src/glRenderer.cpp --- a/src/glRenderer.cpp Thu Feb 09 23:46:45 2017 +0200 +++ b/src/glRenderer.cpp Thu Feb 09 23:50:11 2017 +0200 @@ -455,11 +455,13 @@ if (m_config->drawAxes()) { + glDisableClientState (GL_NORMAL_ARRAY); glBindBuffer (GL_ARRAY_BUFFER, m_axesVbo); glVertexPointer (3, GL_FLOAT, 0, NULL); glBindBuffer (GL_ARRAY_BUFFER, m_axesVbo); glColorPointer (3, GL_FLOAT, 0, NULL); glDrawArrays (GL_LINES, 0, 6); + glEnableClientState (GL_NORMAL_ARRAY); CHECK_GL_ERROR(); } }