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

Commit 13bae97

Browse files
authored
Merge pull request #945 from amerkoleci/d3d11_device_context_fix
[Direct3D11] D3D11 DeviceContext Dispose fix
2 parents 0e33d1c + 1673fb1 commit 13bae97

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)