Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hard coded vertex format element IDs #2592

Merged

Conversation

Erdragh
Copy link
Contributor

@Erdragh Erdragh commented Jan 5, 2025

This PR changes the registration of the VertexFormatElements to not use hardcoded IDs and instead tries to fit the IDs into gaps of the ID -> VFE mapping.

This prevents crashes on startup with other mods that handle new VertexFormatElements the same way (i.e. Stellar View), which would previously try to register with IDs that were already taken by Iris.

Fixes #2491

@Erdragh Erdragh force-pushed the fix/vertex-format-element-ids branch from ddb584e to e302169 Compare January 9, 2025 19:48
@IMS212
Copy link
Member

IMS212 commented Jan 18, 2025

Looks good to me at first glance.

@IMS212 IMS212 merged commit 8e45bf7 into IrisShaders:multiloader-new Jan 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static initialization of VertexFormatElements is incompatible with other mods
2 participants