Fix draweffect blending selection

The blending mode picked by handleStateEffect was being overriden.

CompositeModeSourceOver is the default selection, we do not need to
initialise opts with this.
This commit is contained in:
Ziemas 2020-11-26 02:22:38 +01:00
parent 19e3053c0a
commit 31a21b50dd
1 changed files with 0 additions and 4 deletions

View File

@ -146,8 +146,6 @@ func (s *ebitenSurface) RenderSprite(sprite *d2ui.Sprite) {
s.handleStateEffect(opts)
opts.CompositeMode = ebiten.CompositeModeSourceOver
sprite.Render(s)
}
@ -161,8 +159,6 @@ func (s *ebitenSurface) Render(sfc d2interface.Surface) {
s.handleStateEffect(opts)
opts.CompositeMode = ebiten.CompositeModeSourceOver
s.image.DrawImage(sfc.(*ebitenSurface).image, opts)
}