fix Batch

This commit is contained in:
faiface 2017-03-08 23:58:20 +01:00
parent a1e7f9bf04
commit da155895ba
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,8 @@ var _ BasicTarget = (*Batch)(nil)
func NewBatch(container Triangles, pic Picture) *Batch { func NewBatch(container Triangles, pic Picture) *Batch {
return &Batch{ return &Batch{
cont: Drawer{Triangles: container, Picture: pic}, 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{ return &batchPicture{
Picture: bp.Picture.Slice(r), Picture: bp.Picture.Slice(r),
orig: bp.orig, orig: bp.orig,
dst: bp.dst,
} }
} }