devkitPro / opengx

OpenGL-like wrapper for Nintendo Wii/GameCube
20 stars 2 forks source link

Dynamically resize the vertex buffer #13

Closed mardy closed 6 months ago

mardy commented 7 months ago

Avoid reserving memory if glBegin() is never called, and dynamically increase its size as needed. We never free the buffer memory, since it's likely that the same amount of memory will again be needed during the next frame.