From 7f396f72de37094b501fe1f509ef5d963a45c429 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 13 Jan 2024 19:58:28 +0900 Subject: [PATCH] all: remove the comments about restorable --- internal/atlas/image_test.go | 2 +- internal/buffered/image.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/atlas/image_test.go b/internal/atlas/image_test.go index de2d3ea7c..9f77135da 100644 --- a/internal/atlas/image_test.go +++ b/internal/atlas/image_test.go @@ -488,7 +488,7 @@ func TestLongImages(t *testing.T) { } func TestDeallocateImmediately(t *testing.T) { - // This tests restorable.Image.ClearPixels is called but WritePixels is not called. + // This tests ClearPixels is called but WritePixels is not called. img0 := atlas.NewImage(16, 16, atlas.ImageTypeRegular) img0.EnsureIsolatedFromSourceForTesting(nil) diff --git a/internal/buffered/image.go b/internal/buffered/image.go index 2f42eb9a2..ae7191a0d 100644 --- a/internal/buffered/image.go +++ b/internal/buffered/image.go @@ -27,8 +27,6 @@ type Image struct { img *atlas.Image width int height int - - // pixels is valid only when restorable.AlwaysReadPixelsFromGPU() returns true. pixels []byte }