mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
49365dbcc5
Before this change, the index buffer would start empty and grow up to the maximum size (128kb). It would never shrink. We're about to tighten the GPU buffer API to be immutable for performance and to better match Direct3D, so allocate the index buffer once at startup, and limit it to a reasonable size. Signed-off-by: Elias Naur <mail@eliasnaur.com>