mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
restorable: Remove unnecessary call of clearImage
clearImage is already called in any cases.
This commit is contained in:
parent
0cbf126b80
commit
2cb1ea6fb4
@ -30,10 +30,8 @@ type Pixels struct {
|
||||
// Apply applies the Pixels state to the given image especially for restoring.
|
||||
func (p *Pixels) Apply(img *graphicscommand.Image) {
|
||||
if p.rectToPixels == nil {
|
||||
clearImage(img)
|
||||
return
|
||||
}
|
||||
|
||||
p.rectToPixels.apply(img)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user