summaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-27 15:31:14 -0500
committersanine-a <sanine.not@pm.me>2020-10-27 15:31:14 -0500
commitccd98d4dbdb7acde2433153a01d00a3b9bed02c0 (patch)
tree9ad033d4d6b48d9824a9c924fe23a421feff1f70 /src/mesh
parent50a8d3dc884816fbb1e3a3df3c401358e62b5eea (diff)
fix bug in honey.shader.new and add basic primitives bindings
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/mesh.c b/src/mesh/mesh.c
index 8e7e444..9c045ec 100644
--- a/src/mesh/mesh.c
+++ b/src/mesh/mesh.c
@@ -90,7 +90,7 @@ honey_result honey_mesh_new(honey_mesh* mesh,
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
void honey_mesh_draw(honey_mesh mesh, int shader) {
- honey_shader_use(shader);
+ glUseProgram(shader);
glBindVertexArray(mesh.vertex_array);
glDrawElements(GL_TRIANGLES, mesh.n_indices, GL_UNSIGNED_INT, 0);