From ccd98d4dbdb7acde2433153a01d00a3b9bed02c0 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 27 Oct 2020 15:31:14 -0500 Subject: fix bug in honey.shader.new and add basic primitives bindings --- src/mesh/mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesh') 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); -- cgit v1.2.1