From d70ec991249ee6156c0345b2215521db41c2de0b Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 6 May 2024 11:21:29 +0200 Subject: [PATCH] Fix Dx12 HL_XBS --- libs/directx/dx12.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/directx/dx12.cpp b/libs/directx/dx12.cpp index b3249437b..5a58bacc7 100644 --- a/libs/directx/dx12.cpp +++ b/libs/directx/dx12.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #endif #define IID_PPV_ARGS_OLD(ppType) __uuidof(**(ppType)), IID_PPV_ARGS_Helper(ppType) @@ -170,9 +171,6 @@ HL_PRIM dx_driver *HL_NAME(create)( HWND window, int flags, uchar *dev_desc ) { CHKERR(D3D12XboxCreateDevice(nullptr,¶ms, IID_PPV_ARGS(&drv->device))) drv->device->SetName(L"HL_DX12_XBS"); - if (drv->debug) { - CHKERR(drv->device->QueryInterface(IID_PPV_ARGS(&drv->debugDevice))); - } // Prepare for PresentX {