use the standard way of freeing/releasing opengl resources
Was producing errors when the object was destructed prior to calling release graphics resources.
Was producing errors when the object was destructed prior to calling release graphics resources.