Skip to content

Commit

Permalink
Fixed: cam.drawOptionsCM.GeoM.Reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
setanarut committed Dec 17, 2024
1 parent cfc1cb0 commit e068166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (cam *Camera) DrawWithColorM(worldObject *ebiten.Image, cm colorm.ColorM, w
cam.drawOptionsCM = worldObjectOps
cam.ApplyCameraTransform(&cam.drawOptionsCM.GeoM)
colorm.DrawImage(screen, worldObject, cm, worldObjectOps)
cam.drawOptions.GeoM.Reset()
cam.drawOptionsCM.GeoM.Reset()
}

type ShakeOptions struct {
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ require golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect

retract (
v2.6.0 // nil pointer dereference (jpg) in demo code.
v2.93.0 // GeoM.Reset() bug.
[v2.0.0, v2.2.0]
)

0 comments on commit e068166

Please sign in to comment.