[D3D12] Add missing initialization failure handling
This commit is contained in:
parent
f7ad631057
commit
62919330b9
|
@ -212,6 +212,7 @@ bool D3D12Provider::Initialize() {
|
||||||
XELOGE("Failed to create a direct command queue");
|
XELOGE("Failed to create a direct command queue");
|
||||||
device->Release();
|
device->Release();
|
||||||
dxgi_factory->Release();
|
dxgi_factory->Release();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
dxgi_factory_ = dxgi_factory;
|
dxgi_factory_ = dxgi_factory;
|
||||||
|
|
Loading…
Reference in New Issue