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 }