Deleting unused VBOs

Is there a procedure people use for cleaning up VBOs? The thing I’m working on is picking a random model to use for a bit, and then selecting another to use, and then another, and so on, and I get the feeling that I’ll run out of video memory if I keep doing this indefinitely, so I think I need to do some clean up.

The ofVbo class has ‘unbind’, but there’s nothing to explicitly delete from what I can see. Any pointers?

Thanks in advance!

1 Like

https://openframeworks.cc/documentation/gl/ofVbo/#show_clear

or call the destructor which also calls clear():

https://openframeworks.cc/documentation/gl/ofVbo/#show_~ofVbo

1 Like

Brilliant, thanks for that