소스 검색

Fix Dx12 HL_XBS

Yuxiao Mao 1 년 전
부모
커밋
d70ec99124
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      libs/directx/dx12.cpp

+ 1 - 3
libs/directx/dx12.cpp

@@ -17,6 +17,7 @@
 #include <d3d12_x.h>
 #include <d3dx12_x.h>
 #include <dxcapi_x.h>
+#include <vector>
 #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,&params, 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
 	{