raylib
raylib copied to clipboard
[RMODELS] Ensure that GLTF buffers are deallocated before using them.
Check to see if a mesh buffer is allocated before reallocating it so we don't leak that buffer in cases where the gltf may have duplicate attributes at different resolutions.
Should fix issue #4996