Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 1673fb1

Browse files
committed
Avoid calling ClearState and Flush during D3D11 DeviceContext Dispose.
1 parent 0e33d1c commit 1673fb1

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Source/SharpDX.Direct3D11/DeviceContext.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -607,18 +607,5 @@ internal unsafe bool UpdateSubresourceSafe(SharpDX.Direct3D11.Resource dstResour
607607

608608
private bool isCheckThreadingSupport;
609609
private bool supportsCommandLists;
610-
611-
/// <inheritdoc/>
612-
protected override unsafe void Dispose(bool disposing)
613-
{
614-
if (disposing)
615-
{
616-
// When disposing an DeviceContext, performs a ClearState/Flush before.
617-
ClearState();
618-
Flush();
619-
}
620-
621-
base.Dispose(disposing);
622-
}
623610
}
624611
}

0 commit comments

Comments
 (0)