Pārlūkot izejas kodu

Fix Dx12 HL_XBS

Yuxiao Mao 1 gadu atpakaļ
vecāks
revīzija
d70ec99124
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      libs/directx/dx12.cpp

+ 1 - 3
libs/directx/dx12.cpp

@@ -17,6 +17,7 @@
 #include <d3d12_x.h>
 #include <d3d12_x.h>
 #include <d3dx12_x.h>
 #include <d3dx12_x.h>
 #include <dxcapi_x.h>
 #include <dxcapi_x.h>
+#include <vector>
 #endif
 #endif
 
 
 #define IID_PPV_ARGS_OLD(ppType) __uuidof(**(ppType)), IID_PPV_ARGS_Helper(ppType)
 #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,&params, IID_PPV_ARGS(&drv->device)))
 	CHKERR(D3D12XboxCreateDevice(nullptr,&params, IID_PPV_ARGS(&drv->device)))
 	drv->device->SetName(L"HL_DX12_XBS");
 	drv->device->SetName(L"HL_DX12_XBS");
-	if (drv->debug) {
-		CHKERR(drv->device->QueryInterface(IID_PPV_ARGS(&drv->debugDevice)));
-	}
 
 
 	// Prepare for PresentX
 	// Prepare for PresentX
 	{
 	{