summary refs log tree commit diff
path: root/src/shader
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader')
-rw-r--r--src/shader/shader.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader/shader.odin b/src/shader/shader.odin
index 2aa989c..cd798ff 100644
--- a/src/shader/shader.odin
+++ b/src/shader/shader.odin
@@ -47,12 +47,12 @@ set_f32 :: proc(using shader: ^Shader, name: cstring, value: f32) {
 	gl.Uniform1f(gl.GetUniformLocation(id, name), value)
 }
 
-set_vec3 :: proc(using shader: ^Shader, name: cstring, value: [^]f32) {
-	gl.Uniform3fv(gl.GetUniformLocation(id, name), 1, value)
+set_vec3 :: proc(using shader: ^Shader, name: cstring, value: ^Vec3) {
+	gl.Uniform3fv(gl.GetUniformLocation(id, name), 1, &value[0])
 }
 
-set_mat4 :: proc(using shader: ^Shader, name: cstring, value: [^]f32) {
-	gl.UniformMatrix4fv(gl.GetUniformLocation(id, name), 1, gl.FALSE, value)
+set_mat4 :: proc(using shader: ^Shader, name: cstring, value: ^Mat4) {
+	gl.UniformMatrix4fv(gl.GetUniformLocation(id, name), 1, gl.FALSE, &value[0][0])
 }
 
 set_value :: proc {