예제 #1
0
        protected override void Free()
        {
            base.Free();

            if (Handle.Valid)
            {
                GraphicsContext.DestroyIndexBuffer(Handle);
            }
        }
예제 #2
0
        protected override void Dispose()
        {
            if (!Handle.Valid)
            {
                return;
            }

            GC.SuppressFinalize(this);
            GraphicsContext.DestroyIndexBuffer(Handle);
        }