From 9d0fe922fda4e727a27153798bb1c926d4be1cd8 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 25 Dec 2014 19:53:27 -0800 Subject: [PATCH] Simplify code a little. --- old_gists/gist5816852/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/old_gists/gist5816852/main.go b/old_gists/gist5816852/main.go index 6ca8c7e..095b77a 100644 --- a/old_gists/gist5816852/main.go +++ b/old_gists/gist5816852/main.go @@ -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)