diff --git a/gl21-cube/cube.go b/gl21-cube/cube.go index 48ae512..4416ee9 100644 --- a/gl21-cube/cube.go +++ b/gl21-cube/cube.go @@ -117,7 +117,7 @@ func setupScene() { gl.MatrixMode(gl.PROJECTION) gl.LoadIdentity() - f := ((float64(width) / height) - 1) / 2 + f := float64(width)/height - 1 gl.Frustum(-1-f, 1+f, -1, 1, 1.0, 10.0) gl.MatrixMode(gl.MODELVIEW) gl.LoadIdentity()