diff --git a/examples/triangle-opengl.c b/examples/triangle-opengl.c index cc2ee16f..fef7f8fd 100644 --- a/examples/triangle-opengl.c +++ b/examples/triangle-opengl.c @@ -152,7 +152,7 @@ int main(void) mat4x4_mul(mvp, p, m); glUseProgram(program); - glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp); + glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) &mvp); glBindVertexArray(vertex_array); glDrawArrays(GL_TRIANGLES, 0, 3);