summaryrefslogtreecommitdiff
path: root/src/opengl/shader.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-03-28 23:23:37 -0500
committersanine <sanine.not@pm.me>2023-03-28 23:23:37 -0500
commitcf9d5ca20678944b583d6d0405049c5b5f025e17 (patch)
tree6976ebbead59214b4ee0dc6734259d6c03849613 /src/opengl/shader.c
parent50faaf10b296ebe3ca9af1cdf18f2b557b319be9 (diff)
fix mis-binding of shader uniform setters
Diffstat (limited to 'src/opengl/shader.c')
-rw-r--r--src/opengl/shader.c4
1 files changed, 2 insertions, 2 deletions
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),