summaryrefslogtreecommitdiff
path: root/src/mesh/mesh.c
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-25 19:37:42 -0500
committersanine-a <sanine.not@pm.me>2020-10-25 19:37:42 -0500
commitacc262b019206d09ce0d297f7b185862fe432601 (patch)
tree63071a346da01949966d217ed2d308b4ee21b197 /src/mesh/mesh.c
parentc6f43d9254a82fcebcda4bcf0e692ff859ba8101 (diff)
remove model/* and add shader bindings
Diffstat (limited to 'src/mesh/mesh.c')
-rw-r--r--src/mesh/mesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/mesh.c b/src/mesh/mesh.c
index 231fcc9..99210eb 100644
--- a/src/mesh/mesh.c
+++ b/src/mesh/mesh.c
@@ -66,8 +66,8 @@ honey_result honey_mesh_new(honey_mesh* mesh,
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-void honey_mesh_draw(honey_mesh mesh, honey_shader shader) {
- honey_shader_use(shader);
+void honey_mesh_draw(honey_mesh mesh, int shader) {
+ glUseProgram(shader);
glBindVertexArray(mesh.vertex_array);
glDrawElements(GL_TRIANGLES, mesh.n_indices, GL_UNSIGNED_INT, 0);