From da155895baee5b807f039e9499a563d03f567799 Mon Sep 17 00:00:00 2001 From: faiface Date: Wed, 8 Mar 2017 23:58:20 +0100 Subject: [PATCH] fix Batch --- batch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/batch.go b/batch.go index 97e1059..af2c943 100644 --- a/batch.go +++ b/batch.go @@ -30,6 +30,8 @@ var _ BasicTarget = (*Batch)(nil) func NewBatch(container Triangles, pic Picture) *Batch { return &Batch{ cont: Drawer{Triangles: container, Picture: pic}, + mat: ZM, + col: NRGBA{1, 1, 1, 1}, } } @@ -127,6 +129,7 @@ func (bp *batchPicture) Slice(r Rect) Picture { return &batchPicture{ Picture: bp.Picture.Slice(r), orig: bp.orig, + dst: bp.dst, } }