all: fix comments

This commit is contained in:
Hajime Hoshi 2024-06-30 18:56:07 +09:00
parent def82fd5d3
commit 9ff93e3063
2 changed files with 2 additions and 3 deletions

View File

@ -296,7 +296,7 @@ func TestReputOnSourceBackend(t *testing.T) {
t.Errorf("got: %v, want: %v", got, want)
}
// Use img3 as a render source. As img3 is volatile, img3 is never on an atlas.
// Use img3 as a render source. As img3 is unmanaged, img3 is never on an atlas.
for i := 0; i < atlas.BaseCountToPutOnSourceBackend*2; i++ {
atlas.PutImagesOnSourceBackendForTesting()
vs := quadVertices(size, size, 0, 0, 1)

View File

@ -71,7 +71,6 @@ func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderSrcImageCount]*Mipmap, verti
}
level := 0
// TODO: Do we need to check all the sources' states of being volatile?
if !canSkipMipmap && srcs[0] != nil && canUseMipmap(srcs[0].imageType) {
level = math.MaxInt32
for i := 0; i < len(indices)/3; i++ {
@ -140,7 +139,7 @@ func (m *Mipmap) level(level int) *buffered.Image {
}
if !canUseMipmap(m.imageType) {
panic("mipmap: mipmap images for a volatile or a screen image is not implemented yet")
panic("mipmap: mipmap images for a screen image is not implemented yet")
}
if img, ok := m.imgs[level]; ok {