Explorar o código

graphics-hook: Fix build without COMPILE_D3D12_HOOK

Just need to forward declare D3D12 type.
jpark37 %!s(int64=4) %!d(string=hai) anos
pai
achega
17cb0acdd7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/win-capture/graphics-hook/dxgi-capture.cpp

+ 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 {