Ensure DeviceLost event is also raised in debug mode

このコミットが含まれているのは:
Sergio Pedri committed 2022-07-31 23:26:09 +02:00
1 親 2317ac8423
コミット 15682c44e6
1ファイル変更
+4
+4
ファイルの表示
@@ -71,11 +71,15 @@ internal static class HResultExtensions
if (result < 0)
{
DeviceHelper.RaiseAllDeviceLostEventsIfNeeded();
ThrowHelper.ThrowWin32Exception(result);
}
if (hasErrorsOrWarnings)
{
DeviceHelper.RaiseAllDeviceLostEventsIfNeeded();
ThrowHelper.ThrowWin32Exception("Warning or error detected by ID3D12InfoQueue.");
}
}