From e6ba9d6ab04c38a3d9739d62f6d6a5bb92832583 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Wed, 21 Sep 2016 18:36:01 +0300 Subject: [PATCH] opengl: fix type cast --- include/cglm-opengl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cglm-opengl.h b/include/cglm-opengl.h index 66d317b..c1aa863 100644 --- a/include/cglm-opengl.h +++ b/include/cglm-opengl.h @@ -13,7 +13,7 @@ CGLM_INLINE void glm_mat4_uniform(mat4 m, GLint location){ - glUniformMatrix4fv(location, 1, GL_FALSE, (GLfloat *)m); + glUniformMatrix4fv(location, 1, GL_FALSE, m[0]); } #endif /* cglm_mat_opengl_h */