There are multiple ways to orphan a buffer resource, and this code picks the oldest/safest way no matter which OpenGL version we're running. TODO: use other (more recent) methods after thorough testing Follow up to 8e0c57a812
8e0c57a812