From 7a4b48f67b548870f59bcc18d9d87ebce7186025 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 18 Oct 2020 18:22:16 +0200 Subject: [PATCH] gpu: delete redundant drawOps.reset Noticed by Steve Lam Signed-off-by: Elias Naur --- gpu/gpu.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gpu/gpu.go b/gpu/gpu.go index c7a418c4..0ea1a011 100644 --- a/gpu/gpu.go +++ b/gpu/gpu.go @@ -677,7 +677,6 @@ func (d *drawOps) reset(cache *resourceCache, viewport image.Point) { } func (d *drawOps) collect(cache *resourceCache, root *op.Ops, viewport image.Point) { - d.reset(cache, viewport) clip := f32.Rectangle{ Max: f32.Point{X: float32(viewport.X), Y: float32(viewport.Y)}, }