# gpui_linux: Force scene rebuild after GPU device recovery \(\#52389\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dbd95ea7427f2cdca33053e5c8b9b4d012d257d9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dbd95ea7427f2cdca33053e5c8b9b4d012d257d9

Requested commit: dbd95ea7427f2cdca33053e5c8b9b4d012d257d9

Commit: dbd95ea7427f2cdca33053e5c8b9b4d012d257d9

Tree: 236dabd55be75b8c28ce23b9c69697288c0e8e50

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui_linux: Force scene rebuild after GPU device recovery (#52389)

After GPU device recovery clears the atlas, the next frame could
re-present a stale scene via the needs_present path (which skips scene
rebuilding). The stale scene references texture IDs that no longer exist
in the cleared atlas, causing an index-out-of-bounds panic.

Fix this by setting a force_render_after_recovery flag when device
recovery completes. The platform refresh loop reads this flag and passes
force_render: true in RequestFrameOptions, ensuring GPUI rebuilds the
scene before presenting.

Fixes ZED-5QT

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

- [9973a349a4b758912919bccde7ac652feefbfa45](https://git.cafe/gitcafe/zed/commit/9973a349a4b758912919bccde7ac652feefbfa45?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dbd95ea7427f2cdca33053e5c8b9b4d012d257d9?format=markdown)
