Skip to content

Commit

Permalink
Simplify code a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitshur committed Dec 26, 2014
1 parent 2ab0455 commit 9d0fe92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions old_gists/gist5816852/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ func main() {
gl.Clear(gl.COLOR_BUFFER_BIT)

gl.BindBuffer(gl.ARRAY_BUFFER, vbo)
gl.UniformMatrix4fv(pMatrixUniform, 1, false, (*float32)(&pMatrix[0]))
gl.UniformMatrix4fv(mvMatrixUniform, 1, false, (*float32)(&mvMatrix[0]))
gl.UniformMatrix4fv(pMatrixUniform, 1, false, &pMatrix[0])
gl.UniformMatrix4fv(mvMatrixUniform, 1, false, &mvMatrix[0])
//gl.BindVertexArray(vao)
gl.DrawArrays(gl.TRIANGLE_FAN, 0, int32(len(vertices)))
//gl.BindVertexArray(0)
Expand Down

0 comments on commit 9d0fe92

Please sign in to comment.