From 2848ee5c0c84472d94eac155f7d989c60db97ed9 Mon Sep 17 00:00:00 2001 From: faiface Date: Sat, 14 Jan 2017 16:20:31 +0100 Subject: [PATCH] avoid cheese comment alignment --- window.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/window.go b/window.go index bc953b5..1b7c901 100644 --- a/window.go +++ b/window.go @@ -372,9 +372,10 @@ func (wt *windowTriangles) Len() int { } func (wt *windowTriangles) Draw() { - pic := wt.w.pic // avoid - mat := wt.w.mat // race - col := wt.w.col // condition + // avoid possible race condition + pic := wt.w.pic + mat := wt.w.mat + col := wt.w.col bnd := wt.w.bnd pixelgl.DoNoBlock(func() {