diff --git a/example/game/rects/rects.go b/example/game/rects/rects.go index 43b72e785..7abd372c3 100644 --- a/example/game/rects/rects.go +++ b/example/game/rects/rects.go @@ -88,7 +88,7 @@ func (game *Rects) Draw(g graphics.Context) { game.rectGeometryMatrix(), game.rectColorMatrix()) - g.SetOffscreen(g.Screen().ID()) + g.ResetOffscreen() g.DrawTexture(game.offscreen.Texture().ID(), matrix.IdentityGeometry(), matrix.IdentityColor())