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.
master
Camilla Löwy ago%!(EXTRA string=6 years)
parent 3cf7645b96
commit e91d0fc499
  1. 2
      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);

Loading…
Cancel
Save