mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/ui: bug fix: offscreen images were created too often unexpectedly
This commit is contained in:
parent
6b212d7642
commit
83ac234142
@ -39,9 +39,10 @@ type Image struct {
|
|||||||
|
|
||||||
func NewImage(width, height int, imageType atlas.ImageType) *Image {
|
func NewImage(width, height int, imageType atlas.ImageType) *Image {
|
||||||
return &Image{
|
return &Image{
|
||||||
mipmap: mipmap.New(width, height, imageType),
|
mipmap: mipmap.New(width, height, imageType),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
|
volatile: imageType == atlas.ImageTypeVolatile,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user