mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/mipmap: bug fix: mipmap images were unexpectedly volatile
Closes #2354
This commit is contained in:
parent
eecabf25f4
commit
b4306e0e56
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user