Fix dynamic resolution when v-sync is enabled

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-21 20:55:12 +01:00
1 親 6c21561e6d
コミット 62a3129046
2ファイル変更
+26 -3

検索条件に一致するファイルはありません

+6 -3
ファイルの表示
@@ -389,12 +389,15 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
}
}
/// <inheritdoc/>
private unsafe partial void OnWaitForPresent()
{
_ = Win32.WaitForSingleObjectEx(frameLatencyWaitableObject, Win32.INFINITE, true);
}
/// <inheritdoc/>
private unsafe partial void OnPresent()
{
// Wait for the swap chain to be ready for presenting
_ = Win32.WaitForSingleObjectEx(frameLatencyWaitableObject, Win32.INFINITE, true);
using ComPtr<ID3D12Resource> d3D12Resource = default;
// Get the underlying ID3D12Resource pointer for the texture