internal/ui: bug fix: offscreen images were created too often unexpectedly

This commit is contained in:
Hajime Hoshi 2022-06-08 09:26:18 +09:00
parent 6b212d7642
commit 83ac234142

View File

@ -42,6 +42,7 @@ func NewImage(width, height int, imageType atlas.ImageType) *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,
} }
} }