[D3D12] Slightly cleanup DXC object initialization

This commit is contained in:
Triang3l 2020-08-22 23:21:00 +03:00
parent 0c13b239fd
commit 82ca0a7eec
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ bool PipelineCache::Initialize() {
auto provider = command_processor_->GetD3D12Context()->GetD3D12Provider();
// Initialize the command processor thread DXIL objects.
dxbc_converter_ = nullptr;
dxc_utils_ = nullptr;
dxc_compiler_ = nullptr;
if (cvars::d3d12_dxbc_disasm_dxilconv) {
if (FAILED(provider->DxbcConverterCreateInstance(
CLSID_DxbcConverter, IID_PPV_ARGS(&dxbc_converter_)))) {