compositor: disable attrib arrays after use
Not strictly necessary right now, but nice to clean up. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
@@ -690,8 +690,12 @@ weston_surface_draw(struct weston_surface *es, struct weston_output *output)
|
||||
glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 4 * sizeof *v, &v[2]);
|
||||
glEnableVertexAttribArray(0);
|
||||
glEnableVertexAttribArray(1);
|
||||
|
||||
glDrawElements(GL_TRIANGLES, n * 6, GL_UNSIGNED_INT, ec->indices.data);
|
||||
|
||||
glDisableVertexAttribArray(1);
|
||||
glDisableVertexAttribArray(0);
|
||||
|
||||
ec->vertices.size = 0;
|
||||
ec->indices.size = 0;
|
||||
pixman_region32_fini(&repaint);
|
||||
|
||||
Reference in New Issue
Block a user