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

[rmodels] Fix out of bounds error in GenMeshTangents for loop. #3990

Merged
merged 1 commit into from
May 21, 2024

Conversation

sgalindo
Copy link
Contributor

Found a bug in the GenMeshTangents function when calling it with a generated plane mesh. Pointers to tan1 and tan2 go out of bounds since the int i would increment up to vertexCount instead of vertexCount - 3.

@sgalindo sgalindo changed the title Fixed out of bounds error in GenMeshTangents for loop. [rmodels] Fix out of bounds error in GenMeshTangents for loop. May 19, 2024
@raysan5 raysan5 merged commit c4a51a3 into raysan5:master May 21, 2024
@raysan5
Copy link
Owner

raysan5 commented May 21, 2024

@sgalindo Good catch! Thanks for the review!

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