jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.42k stars 135 forks source link

Remove VLA usage for GLB size constants #238

Closed rgriege closed 8 months ago

rgriege commented 9 months ago

Opinions on whether VLA's are a good feature tend to be pretty mixed. Regardless of opinion, Microsoft's MSVC compiler does not support them, and any project attempting to use the C89 standard won't either.

The VLA's in this library aren't even of variable size - their sizes are known at compile time.

Love the library, thanks for building & supporting it!