Cleaned up index & vertex buffer resize code