From cf9d5ca20678944b583d6d0405049c5b5f025e17 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 28 Mar 2023 23:23:37 -0500 Subject: fix mis-binding of shader uniform setters --- src/opengl/shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opengl') diff --git a/src/opengl/shader.c b/src/opengl/shader.c index d78b1ef..061b814 100644 --- a/src/opengl/shader.c +++ b/src/opengl/shader.c @@ -40,8 +40,8 @@ void setup_shader(lua_State *L, int gl_index) H_FUNC("GetUniformLocation", gl_uniform_get_location), H_FUNC("Uniform1i", gl_uniform_1i), - H_FUNC("Uniform1f", gl_uniform_1i), - H_FUNC("Uniform3f", gl_uniform_1i), + H_FUNC("Uniform1f", gl_uniform_1f), + H_FUNC("Uniform3f", gl_uniform_3f), H_FUNC("Uniform4f", gl_uniform_4f), H_FUNC("UniformMatrix4fv", gl_uniform_matrix_4fv), -- cgit v1.2.1