Skip to content

invalidate UI render instance cache when freeing model instances#7514

Merged
Goober5000 merged 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/7513
Jun 9, 2026
Merged

invalidate UI render instance cache when freeing model instances#7514
Goober5000 merged 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/7513

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

Fixes a startup assertion failure in Star Fox: Event Horizon, where a Lua call to gr.freeAllModels() wiped Polygon_model_instances but left the UI render instance cache holding stale indices. The next state transition called model_clear_cached_ui_render_instances() which asserted in model_delete_instance().

Closes #7513

Fixes a startup assertion failure in Star Fox: Event Horizon, where a Lua
call to gr.freeAllModels() wiped Polygon_model_instances but left the UI
render instance cache holding stale indices. The next state transition
called model_clear_cached_ui_render_instances() which asserted in
model_delete_instance().

Closes scp-fs2open#7513

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. models Issues or features having to do with model data (like animations or geometry) labels Jun 9, 2026
@Goober5000 Goober5000 merged commit d4c21ec into scp-fs2open:master Jun 9, 2026
20 checks passed
@Goober5000 Goober5000 deleted the fix/7513 branch June 9, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. models Issues or features having to do with model data (like animations or geometry)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure on startup of Star Fox: Event Horizon

2 participants