Move VAO buffer clearing code to the destructor, instead of the constructor.

This fixes assertion failures during the VertexArray destructor in Debug mode.

TRAC #23390

Signed-off-by: Shannon Woods
Signed-off-by: Geoff Lang
Authored-by: Jamie Madill
2 files changed