/// <summary> /// Releases the vertex buffer. /// </summary> protected override void Free() { base.Free(); if (Handle.Valid) { GraphicsContext.DestroyVertexBuffer(Handle); } }
/// <summary> /// Releases the vertex buffer. /// </summary> protected override void Dispose() { if (!Handle.Valid) { return; } GC.SuppressFinalize(this); GraphicsContext.DestroyVertexBuffer(Handle); }