[D3D12] Add missing initialization failure handling

This commit is contained in:
Triang3l 2020-05-04 17:15:51 +03:00
parent f7ad631057
commit 62919330b9
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ bool D3D12Provider::Initialize() {
XELOGE("Failed to create a direct command queue");
device->Release();
dxgi_factory->Release();
return false;
}
dxgi_factory_ = dxgi_factory;