From f6cdf401fc9ab1966589698415671437ff786816 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 1 Jul 2024 00:03:01 +0900 Subject: [PATCH] internal/atlas: bug fix: compilation failure --- internal/atlas/image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/atlas/image_test.go b/internal/atlas/image_test.go index ee7bca2e17d5..66450962883e 100644 --- a/internal/atlas/image_test.go +++ b/internal/atlas/image_test.go @@ -890,7 +890,7 @@ func TestDallocateUnmanagedImageBackends(t *testing.T) { vs := quadVertices(w, h, 0, 0, 1) is := graphics.QuadIndices() dr := image.Rect(0, 0, w, h) - img0.DrawTriangles([graphics.ShaderSrcImageCount]*atlas.Image{img1}, vs, is, graphicsdriver.BlendCopy, dr, [graphics.ShaderSrcImageCount]image.Rectangle{}, atlas.NearestFilterShader, nil, graphicsdriver.FillRuleFillAll) + img0.DrawTriangles([graphics.ShaderImageCount]*atlas.Image{img1}, vs, is, graphicsdriver.BlendCopy, dr, [graphics.ShaderImageCount]image.Rectangle{}, atlas.NearestFilterShader, nil, graphicsdriver.FillAll) // Get the difference of the number of backends before and after the images are deallocated. c := atlas.BackendCountForTesting()