mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
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:
parent
3cf7645b96
commit
e91d0fc499
@ -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…
Reference in New Issue
Block a user