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