mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/mipmap: bug fix: mipmap images were unexpectedly volatile
Closes #2354
This commit is contained in:
parent
3a0f28ce6b
commit
6b35ad4a88
@ -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