You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.h defines MAX_MESH_VERTEX_BUFFERS as 7, rmodels.c does this:
#ifndef MAX_MESH_VERTEX_BUFFERS
#define MAX_MESH_VERTEX_BUFFERS 9 // Maximum vertex buffers (VBO) per mesh
#endif
I noticed this when I was trying to run the heightmap rendering example code and got a memory error when the mesh was unloaded. It looks it will use 9 spots even if 7 are allocated:
Issue description
config.h
definesMAX_MESH_VERTEX_BUFFERS
as 7,rmodels.c
does this:I noticed this when I was trying to run the heightmap rendering example code and got a memory error when the mesh was unloaded. It looks it will use 9 spots even if 7 are allocated:
Then when the mesh is unloaded and it frees
vboId
, it can crash.Environment
Lenovo Ideapad 5 2-in-1 14IRU9
Windows 11
OpenGl 3.3
Code Example
This causes a crash on my system:
In
rmodels.c
,UploadMesh
:The text was updated successfully, but these errors were encountered: