Skip to content

Commit e068166

Browse files
committed
Fixed: cam.drawOptionsCM.GeoM.Reset()
1 parent cfc1cb0 commit e068166

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

camera.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func (cam *Camera) DrawWithColorM(worldObject *ebiten.Image, cm colorm.ColorM, w
369369
cam.drawOptionsCM = worldObjectOps
370370
cam.ApplyCameraTransform(&cam.drawOptionsCM.GeoM)
371371
colorm.DrawImage(screen, worldObject, cm, worldObjectOps)
372-
cam.drawOptions.GeoM.Reset()
372+
cam.drawOptionsCM.GeoM.Reset()
373373
}
374374

375375
type ShakeOptions struct {

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ require golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
2020

2121
retract (
2222
v2.6.0 // nil pointer dereference (jpg) in demo code.
23+
v2.93.0 // GeoM.Reset() bug.
2324
[v2.0.0, v2.2.0]
2425
)

0 commit comments

Comments
 (0)