Commit f4dc4639 authored by Guillaume Seguin's avatar Guillaume Seguin

No need to do if use_vbo check, .ptr value for vbos is 0

parent 56803dc7
......@@ -584,9 +584,6 @@ class GcodeModel(Model):
def _display_travels(self, has_vbo):
self.travel_buffer.bind()
if has_vbo:
glVertexPointer(3, GL_FLOAT, 0, None)
else:
glVertexPointer(3, GL_FLOAT, 0, self.travel_buffer.ptr)
# TODO: show current layer travels in a different color
......@@ -616,21 +613,12 @@ class GcodeModel(Model):
def _display_movements(self, has_vbo):
self.vertex_buffer.bind()
if has_vbo:
glVertexPointer(3, GL_FLOAT, 0, None)
else:
glVertexPointer(3, GL_FLOAT, 0, self.vertex_buffer.ptr)
self.vertex_color_buffer.bind()
if has_vbo:
glColorPointer(3, GL_FLOAT, 0, None)
else:
glColorPointer(3, GL_FLOAT, 0, self.vertex_color_buffer.ptr)
self.vertex_normal_buffer.bind()
if has_vbo:
glNormalPointer(GL_FLOAT, 0, None)
else:
glNormalPointer(GL_FLOAT, 0, self.vertex_normal_buffer.ptr)
self.index_buffer.bind()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment