From 99b0e2a2dee73bf6ed81dd0c9cb52295a2c0c910 Mon Sep 17 00:00:00 2001 From: Laurent Le Goff Date: Fri, 22 Apr 2011 09:56:27 +0200 Subject: [PATCH] Update to lastest Go-Glut release --- draw2dgl/gc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/draw2dgl/gc.go b/draw2dgl/gc.go index f35dd59..1cbb978 100644 --- a/draw2dgl/gc.go +++ b/draw2dgl/gc.go @@ -4,7 +4,6 @@ import ( "image" "exp/draw" "gl" - "unsafe" "freetype-go.googlecode.com/hg/freetype/raster" "draw2d.googlecode.com/hg/draw2d" //"log" @@ -41,8 +40,8 @@ func (p *GLPainter) Flush() { if len(p.vertices) != 0 { gl.EnableClientState(gl.COLOR_ARRAY) gl.EnableClientState(gl.VERTEX_ARRAY) - gl.ColorPointer(4, gl.UNSIGNED_BYTE, 0, unsafe.Pointer(&(p.colors[0]))) - gl.VertexPointer(2, gl.INT, 0, unsafe.Pointer(&(p.vertices[0]))) + gl.ColorPointer(4, 0, p.colors) + gl.VertexPointer(2, 0, p.vertices) // draw lines gl.DrawArrays(gl.LINES, 0, len(p.vertices)/2)