From 36b38b6b9e4347bb932dbe1a0bc7299602dfc047 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Wed, 8 Nov 2023 13:44:06 -0800 Subject: [PATCH] commit jacalz's suggestion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jacob Alzén --- internal/driver/glfw/loop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/driver/glfw/loop.go b/internal/driver/glfw/loop.go index 2538a51a7d..7d2fab3228 100644 --- a/internal/driver/glfw/loop.go +++ b/internal/driver/glfw/loop.go @@ -73,7 +73,7 @@ func runOnDraw(w *window, f func()) { // window canvases that are dirty on a single frame. // So its memory impact should be negligible and does not // need periodic shrinking. -var refreshingCanvases = make([]fyne.Canvas, 0) +var refreshingCanvases []fyne.Canvas func (d *gLDriver) drawSingleFrame() { for _, win := range d.windowList() {