|
|
@@ -198,6 +198,13 @@ static void update_mismatch_count(bool match)
|
|
|
static HRESULT STDMETHODCALLTYPE hook_present(IDXGISwapChain *swap,
|
|
|
UINT sync_interval, UINT flags)
|
|
|
{
|
|
|
+ if (should_passthrough()) {
|
|
|
+ dxgi_presenting = true;
|
|
|
+ const HRESULT hr = RealPresent(swap, sync_interval, flags);
|
|
|
+ dxgi_presenting = false;
|
|
|
+ return hr;
|
|
|
+ }
|
|
|
+
|
|
|
const bool capture_overlay = global_hook_info->capture_overlay;
|
|
|
const bool test_draw = (flags & DXGI_PRESENT_TEST) != 0;
|
|
|
|
|
|
@@ -255,6 +262,14 @@ static HRESULT STDMETHODCALLTYPE
|
|
|
hook_present1(IDXGISwapChain1 *swap, UINT sync_interval, UINT flags,
|
|
|
const DXGI_PRESENT_PARAMETERS *params)
|
|
|
{
|
|
|
+ if (should_passthrough()) {
|
|
|
+ dxgi_presenting = true;
|
|
|
+ const HRESULT hr =
|
|
|
+ RealPresent1(swap, sync_interval, flags, params);
|
|
|
+ dxgi_presenting = false;
|
|
|
+ return hr;
|
|
|
+ }
|
|
|
+
|
|
|
const bool capture_overlay = global_hook_info->capture_overlay;
|
|
|
const bool test_draw = (flags & DXGI_PRESENT_TEST) != 0;
|
|
|
|