mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
all: fix comments
This commit is contained in:
parent
def82fd5d3
commit
9ff93e3063
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user