mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-24 22:43:39 +00:00
[host] d12: check for failure to obtain d3d12 functions
This commit is contained in:
parent
ce9ed5da5d
commit
dd6c79594b
@ -206,6 +206,16 @@ static bool d12_create(
|
||||
(typeof(DX12.D3D12SerializeVersionedRootSignature))
|
||||
GetProcAddress(this->d3d12, "D3D12SerializeVersionedRootSignature");
|
||||
|
||||
if (!DX12.D3D12CreateDevice ||
|
||||
!DX12.D3D12GetDebugInterface ||
|
||||
!DX12.D3D12SerializeVersionedRootSignature)
|
||||
{
|
||||
DEBUG_ERROR("Failed to get required exports from d3d12.dll");
|
||||
CloseHandle(this->d3d12);
|
||||
free(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
this->getPointerBufferFn = getPointerBufferFn;
|
||||
this->postPointerBufferFn = postPointerBufferFn;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user