mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
internal/restorable: remove an image attribute
This commit is contained in:
parent
d1ee7797c7
commit
e40e699718
@ -168,15 +168,8 @@ func NewImage(width, height int, imageType ImageType) *Image {
|
|||||||
panic("restorable: graphics driver must be ready at NewImage but not")
|
panic("restorable: graphics driver must be ready at NewImage but not")
|
||||||
}
|
}
|
||||||
|
|
||||||
var attribute string
|
|
||||||
if needsRestoration() {
|
|
||||||
switch imageType {
|
|
||||||
case ImageTypeVolatile:
|
|
||||||
attribute = "volatile"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
i := &Image{
|
i := &Image{
|
||||||
image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, attribute),
|
image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, ""),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
imageType: imageType,
|
imageType: imageType,
|
||||||
|
Loading…
Reference in New Issue
Block a user