Use a single buffer for multiple vertex arrays

This commit is contained in:
Kovid Goyal
2017-08-22 07:59:51 +05:30
parent ffd9ec653d
commit 4364163ceb
2 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ void main() {
self.vao_id = self.add_vertex_arrays(self.vertex_array('rect'))
def send_data(self, data):
self.send_vertex_data(self.vao_id, 'rect', data)
self.send_vertex_data(self.vao_id, data)
def set_colors(self, color_buf):
glUniform3fv(self.uniform_location('colors'), 3, addressof(color_buf))