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 GenMeshPlane when resX != resZ #3425

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Conversation

neyrox
Copy link
Contributor

@neyrox neyrox commented Oct 15, 2023

No description provided.

@raysan5
Copy link
Owner

raysan5 commented Oct 15, 2023

@neyrox Please, could you eleaborate what was exactly the issue? Some screenshot illustrating it would be welcome...

@neyrox
Copy link
Contributor Author

neyrox commented Oct 16, 2023

@neyrox Please, could you eleaborate what was exactly the issue? Some screenshot illustrating it would be welcome...

Code

Mesh backMesh = GenMeshPlane(40.0f, 40.0f, 4, 3);

Caused error

[.WebGL-0x1000032db00] GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call

on rendering because in these cases indices were out of bounds...

@raysan5 raysan5 merged commit c4296b1 into raysan5:master Oct 16, 2023
@raysan5
Copy link
Owner

raysan5 commented Oct 16, 2023

@neyrox thanks for the details and the review!

@neyrox neyrox deleted the fix/gen-mesh-plane branch October 16, 2023 12:09
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

3 participants