mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +00:00
[host] d12: check for failure to obtain d3d12 functions
This commit is contained in:
parent
ce9ed5da5d
commit
dd6c79594b
1 changed files with 10 additions and 0 deletions
|
@ -206,6 +206,16 @@ static bool d12_create(
|
||||||
(typeof(DX12.D3D12SerializeVersionedRootSignature))
|
(typeof(DX12.D3D12SerializeVersionedRootSignature))
|
||||||
GetProcAddress(this->d3d12, "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->getPointerBufferFn = getPointerBufferFn;
|
||||||
this->postPointerBufferFn = postPointerBufferFn;
|
this->postPointerBufferFn = postPointerBufferFn;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue