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

Main InstanceManager - unshare LODs as well #2000

Merged
merged 1 commit into from
May 3, 2021

Conversation

erikogenvik
Copy link
Contributor

This fixes a segfault which will appear if a mesh with shared vertices and existing edge data is used.
It's triggered by the calls to "buildEdgeList()", since when doing this the LODs will be accessed.
And since they haven't been altered, they will rely on the now deleted shared geometry, and
their indices will be out of bounds, causing segfault.

This fixes a segfault which will appear if a mesh with shared vertices and existing edge data is used.
It's triggered by the calls to "buildEdgeList()", since when doing this the LODs will be accessed.
And since they haven't been altered, they will rely on the now deleted shared geometry, and
their indices will be out of bounds, causing segfault.
@paroj
Copy link
Member

paroj commented May 3, 2021

thanks

@paroj paroj merged commit a358895 into OGRECave:stable May 3, 2021
paroj pushed a commit that referenced this pull request May 3, 2021
This fixes a segfault which will appear if a mesh with shared vertices and existing edge data is used.
It's triggered by the calls to "buildEdgeList()", since when doing this the LODs will be accessed.
And since they haven't been altered, they will rely on the now deleted shared geometry, and
their indices will be out of bounds, causing segfault.
raymond-w-ko pushed a commit to syandus/ogre that referenced this pull request Jan 3, 2022
This fixes a segfault which will appear if a mesh with shared vertices and existing edge data is used.
It's triggered by the calls to "buildEdgeList()", since when doing this the LODs will be accessed.
And since they haven't been altered, they will rely on the now deleted shared geometry, and
their indices will be out of bounds, causing segfault.
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.

None yet

2 participants