Dispose native sources when effect is disposed
このコミットが含まれているのは:
1 親
4954bec5f4
コミット
0855eca967
1ファイル変更
+8
@@ -42,5 +42,13 @@ partial class PixelShaderEffect<T>
|
||||
this.canvasDevice.Dispose();
|
||||
this.d2D1RealizationDevice.Dispose();
|
||||
this.d2D1Effect.Dispose();
|
||||
|
||||
// Also release all native resources for the used sources.
|
||||
// The transform mapper and resource texture managers don't
|
||||
// need to be disposed, as those could be shared between effects.
|
||||
for (int i = 0; i < SourceCollection.Count; i++)
|
||||
{
|
||||
Sources.Storage[i].Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする