also fix possible delete bugs with buffer objects and vertex/fragment programs
3 files changed