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 3a0f28ce6b
commit 6b35ad4a88

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,