mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +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.
|
// Apply applies the Pixels state to the given image especially for restoring.
|
||||||
func (p *Pixels) Apply(img *graphicscommand.Image) {
|
func (p *Pixels) Apply(img *graphicscommand.Image) {
|
||||||
if p.rectToPixels == nil {
|
if p.rectToPixels == nil {
|
||||||
clearImage(img)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
p.rectToPixels.apply(img)
|
p.rectToPixels.apply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user