michaelfairley / rust-imgui-opengl-renderer

OpenGL (3+) rendering for imgui-rs
37 stars 32 forks source link

vertex array IDs are leaked #4

Closed rasky closed 5 years ago

rasky commented 5 years ago

gl.GenVertexArrays is called every frame, but glDeleteVertexArrays is never called. It should be probably sufficient to create the vao once, store the id, and reuse every frame.

michaelfairley commented 5 years ago

Ah! Thanks! Fixed in c8fa1202cf7d25e90f13ea2e19b5048f1ad888e1, and released in 0.3.1