Fixed random crash during resource finalizers
このコミットが含まれているのは:
1 親
14e78f8ef6
コミット
c2345bef99
3ファイル変更
+3
-3
検索条件に一致するファイルはありません
@@ -153,7 +153,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
{
|
||||
this.d3D12Resource.Dispose();
|
||||
|
||||
if (!GraphicsDevice.IsDisposed)
|
||||
if (GraphicsDevice?.IsDisposed == false)
|
||||
{
|
||||
GraphicsDevice.ReturnShaderResourceViewDescriptorHandles(D3D12CpuDescriptorHandle, D3D12GpuDescriptorHandle);
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
{
|
||||
this.d3D12Resource.Dispose();
|
||||
|
||||
if (!GraphicsDevice.IsDisposed)
|
||||
if (GraphicsDevice?.IsDisposed == false)
|
||||
{
|
||||
GraphicsDevice.ReturnShaderResourceViewDescriptorHandles(D3D12CpuDescriptorHandle, D3D12GpuDescriptorHandle);
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
{
|
||||
this.d3D12Resource.Dispose();
|
||||
|
||||
if (!GraphicsDevice.IsDisposed)
|
||||
if (GraphicsDevice?.IsDisposed == false)
|
||||
{
|
||||
GraphicsDevice.ReturnShaderResourceViewDescriptorHandles(D3D12CpuDescriptorHandle, D3D12GpuDescriptorHandle);
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする