Clarify triangle-opengl uniform uniform update

The previous way worked as mat4 is an array typedef but this way may be
clearer to people new to the linmath header.
This commit is contained in:
Camilla Löwy 2019-05-19 21:46:34 +02:00
parent 3cf7645b96
commit e91d0fc499

View File

@ -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);