Improve error handling in graphics memory init

This commit is contained in:
Herman S.
2025-10-08 09:11:26 +09:00
parent 337afcf318
commit 1e23aaf4fc
4 changed files with 14 additions and 4 deletions

View File

@@ -34,7 +34,9 @@ D3D12SharedMemory::D3D12SharedMemory(D3D12CommandProcessor& command_processor,
D3D12SharedMemory::~D3D12SharedMemory() { Shutdown(true); }
bool D3D12SharedMemory::Initialize() {
InitializeCommon();
if (!InitializeCommon()) {
return false;
}
const ui::d3d12::D3D12Provider& provider =
command_processor_.GetD3D12Provider();