internal/mipmap: bug fix: mipmap images were unexpectedly volatile

Closes #2354
This commit is contained in:
Hajime Hoshi 2022-09-28 01:40:34 +09:00
parent eecabf25f4
commit b4306e0e56

View File

@ -181,7 +181,12 @@ func (m *Mipmap) level(level int) *buffered.Image {
m.setImg(level, nil)
return nil
}
s := buffered.NewImage(w2, h2, atlas.ImageTypeVolatile)
t := atlas.ImageTypeRegular
if m.volatile {
t = atlas.ImageTypeVolatile
}
s := buffered.NewImage(w2, h2, t)
dstRegion := graphicsdriver.Region{
X: 0,