WeaponsHUD.render sets renderer.autoClear = false, then clearDepth() + render(), then restores autoClear.
If renderer.render throws, the restore is skipped (it sits after render() inside the same try, and the catch only console.errors). Callers that share the renderer then draw the next pass with autoClear === false and leave uncleared colour buffers.
dispose() is also wrong: it calls rebuildUI() (which recreates the bar) and then drops the tracking arrays, so the group still has live meshes after dispose.
`WeaponsHUD.render` sets `renderer.autoClear = false`, then `clearDepth()` + `render()`, then restores `autoClear`.
If `renderer.render` throws, the restore is skipped (it sits after `render()` inside the same `try`, and the `catch` only `console.error`s). Callers that share the renderer then draw the next pass with `autoClear === false` and leave uncleared colour buffers.
`dispose()` is also wrong: it calls `rebuildUI()` (which *recreates* the bar) and then drops the tracking arrays, so the group still has live meshes after dispose.
File: `projects/spikersoft/src/app/_components/_games/space-game/hud/weapons-hud.ts` (`render` / `dispose`).
Resolved in spikersoft-angular PR #819 (merged to master). WeaponsHUD restores autoClear in finally; dispose tears down instead of rebuilding. Closing.
Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). WeaponsHUD restores autoClear in finally; dispose tears down instead of rebuilding. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
WeaponsHUD.rendersetsrenderer.autoClear = false, thenclearDepth()+render(), then restoresautoClear.If
renderer.renderthrows, the restore is skipped (it sits afterrender()inside the sametry, and thecatchonlyconsole.errors). Callers that share the renderer then draw the next pass withautoClear === falseand leave uncleared colour buffers.dispose()is also wrong: it callsrebuildUI()(which recreates the bar) and then drops the tracking arrays, so the group still has live meshes after dispose.File:
projects/spikersoft/src/app/_components/_games/space-game/hud/weapons-hud.ts(render/dispose).Resolved in spikersoft-angular PR #819 (merged to
master). WeaponsHUD restores autoClear in finally; dispose tears down instead of rebuilding. Closing.