From 3b43dcb80d2404e765e8d2e91482d66035c8f42c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 23 Feb 2024 11:00:18 +1100 Subject: [PATCH] [host] d12: fix type of function argument --- host/platform/Windows/capture/D12/backend.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/platform/Windows/capture/D12/backend.h b/host/platform/Windows/capture/D12/backend.h index cf32f4ff..7e7b7c80 100644 --- a/host/platform/Windows/capture/D12/backend.h +++ b/host/platform/Windows/capture/D12/backend.h @@ -60,7 +60,7 @@ struct D12Backend ID3D12Resource * (*fetch)(D12Backend * instance, unsigned frameBufferIndex, - const RECT * dirtyRects[static D12_MAX_DIRTY_RECTS], + const RECT ** dirtyRects, unsigned * nbDirtyRects); }; @@ -96,7 +96,7 @@ static inline CaptureResult d12_backendSync(D12Backend * instance, { return instance->sync(instance, commandQueue); } static inline ID3D12Resource * d12_backendFetch(D12Backend * instance, - unsigned frameBufferIndex, const RECT * dirtyRects[static D12_MAX_DIRTY_RECTS], + unsigned frameBufferIndex, const RECT ** dirtyRects, unsigned * nbDirtyRects) { return instance->fetch(instance, frameBufferIndex, dirtyRects, nbDirtyRects); }