-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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] Errors during LoadMesh on MacOS #4346
Comments
It's possible that the mac may only support 8 VBOs, the code should check GL for the max and not try to load them all if possible. |
This could be the same problem as #4343. When loading mesh a bad define can mean the wrong amount of memory is allocated for VBO indices. |
Yeah you seem to be right. When I change it to 7 the crash doesnt appear. |
I just tested on an intel mac, and can verify that yes, the mac only supports 8 VBOs. |
PR #4348 should disable this feature for MacOS |
@raysan5 @JeffM2501 Not sure if this is the place to put this but: GPU Skinning (#4321) works fine for me on macOS (Sonoma 14.6.1) (M1 MacBook Air 2020) after changing "MAX_MESH_VERTEX_BUFFERS" to 9 in config.h. This is using the example and model from "models_gpu_skinning.c" (I'll include it below, also). So, at least on my machine, macOS seems to support GPU skinning and all other models that I have tried load fine. Unless I've misunderstood, something. I'm happy to test more things out if you want. EDIT:
|
I'm going to try this with the config fix and see if that is the issue. |
@JeffM2501 Cool. You can see here for the logic behind it: #4349 Once I changed MAX_MESH_VERTEX_BUFFERS to 9 in config.h, models loaded fine and I've been using GPU skinning on macOS without issue since then. |
Yeah that was the issue, it does work on the mac. I have summited PR#4353 that should get it all in line. |
Issue description
Since #4321 uploading Meshes on MacOS will randomly fail and cause the running program to crash.
Environment
Issue Screenshot
Code Example
Running this leads to it crashing within the first ~4 models it tries to load. It doesn't seem to change whether its .obj or .gltf files.
The text was updated successfully, but these errors were encountered: