Skip to content

Commit

Permalink
Wrong depth in line drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
kko committed Sep 2, 2012
1 parent 692e648 commit ca1e967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphics/RendererGL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ bool RendererGL2::DrawLines(int count, const vector3f *v, const Color *c, LineTy
if (count < 2 || !v) return false;

vtxColorProg->Use();
vtxColorProg->invLogZfarPlus1.Set(m_invLogZfarPlus1);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glVertexPointer(3, GL_FLOAT, sizeof(vector3f), v);
Expand All @@ -97,6 +98,7 @@ bool RendererGL2::DrawLines(int count, const vector3f *v, const Color &c, LineTy

flatColorProg->Use();
flatColorProg->diffuse.Set(c);
flatColorProg->invLogZfarPlus1.Set(m_invLogZfarPlus1);
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, sizeof(vector3f), v);
glDrawArrays(t, 0, count);
Expand Down

0 comments on commit ca1e967

Please sign in to comment.