# Keep one dot-grid shader per grid, and the points path untouched · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/f7ad2eaa4d55360db2676c9b10aefbb63aa18b27)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: f7ad2eaa4d55360db2676c9b10aefbb63aa18b27

Requested commit: f7ad2eaa4d55360db2676c9b10aefbb63aa18b27

Commit: f7ad2eaa4d55360db2676c9b10aefbb63aa18b27

Tree: 823f8ef7ec41da5d3096cfdbb8ea413a17750c61

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Keep one dot-grid shader per grid, and the points path untouched

A shader was made for every painter and never disposed, and its uniforms
are only freed by dispose: zooming replaced the painter each step, so each
step leaked one. The grid's state now owns a single shader and disposes it
when the grid goes. Only the web reads the editor's zoom, so desktop
records its points once again rather than on every zoom step.

Found in review by Astra.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

```

## Parents

- [99b947fa0f5d9fe923d9c5a21361bb9faf7d6532](https://git.cafe/dara/icarus/commit/99b947fa0f5d9fe923d9c5a21361bb9faf7d6532?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/f7ad2eaa4d55360db2676c9b10aefbb63aa18b27?format=markdown)
