Przeglądaj źródła

graphics-hook: Fix build without COMPILE_D3D12_HOOK

Just need to forward declare D3D12 type.
jpark37 4 lat temu
rodzic
commit
17cb0acdd7

+ 1 - 1
plugins/win-capture/graphics-hook/dxgi-capture.cpp

@@ -24,7 +24,7 @@ static struct func_hook present;
 static struct func_hook present1;
 
 thread_local bool dxgi_presenting = false;
-ID3D12CommandQueue *dxgi_possible_swap_queue = nullptr;
+struct ID3D12CommandQueue *dxgi_possible_swap_queue = nullptr;
 bool dxgi_present_attempted = false;
 
 struct dxgi_swap_data {