Skip to content

Commit

Permalink
RenderVboIbo: use GL_TRIANGLES instead of GL_TRIANGLE_STRIP
Browse files Browse the repository at this point in the history
By using GL_TRIANGLES, the index order does not need to be pre-processed.
  • Loading branch information
christian-rauch committed Dec 7, 2016
1 parent 5dced4e commit 584650d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pangolin/gl/glvbo.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ inline void RenderVboIbo(GlBuffer& vbo, GlBuffer& ibo, bool draw_mesh)

if(draw_mesh) {
ibo.Bind();
glDrawElements(GL_TRIANGLE_STRIP, ibo.num_elements*ibo.count_per_element, ibo.datatype, 0);
glDrawElements(GL_TRIANGLES, ibo.num_elements*ibo.count_per_element, ibo.datatype, 0);
ibo.Unbind();
}else{
glDrawArrays(GL_POINTS, 0, vbo.num_elements);
Expand Down

0 comments on commit 584650d

Please sign in to comment.