diff options
Diffstat (limited to 'src/shader.c')
-rw-r--r-- | src/shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader.c b/src/shader.c index b9e13da..d726523 100644 --- a/src/shader.c +++ b/src/shader.c @@ -101,10 +101,10 @@ void honey_shader_set_int(honey_shader shader, void honey_shader_set_mat4(honey_shader shader, char* matrix_name, - float* matrix) { + mat4 matrix) { glUseProgram(shader); unsigned int matrix_location = glGetUniformLocation(shader, matrix_name); - glUniformMatrix4fv(matrix_location, 1, GL_FALSE, matrix); + glUniformMatrix4fv(matrix_location, 1, GL_FALSE, (float*) matrix); } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |