mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
fix potential compile errors if strict mode (/permissive-) is enabled
This commit is contained in:
parent
04cf767f17
commit
2c7b5e8298
@ -1801,13 +1801,14 @@ int Main2(int argc, wchar_t** argv)
|
|||||||
return (int)ExitCode::Help;
|
return (int)ExitCode::Help;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<DXGIUsage> DXGIUsage(new DXGIUsage());
|
// variable name should not same as class name
|
||||||
DXGIUsage->Init();
|
std::unique_ptr<DXGIUsage> dxgiUsage = std::make_unique<DXGIUsage>();
|
||||||
g_DXGIUsage = DXGIUsage.get();
|
dxgiUsage->Init();
|
||||||
|
g_DXGIUsage = dxgiUsage.get();
|
||||||
|
|
||||||
if(g_CommandLineParameters.m_List)
|
if(g_CommandLineParameters.m_List)
|
||||||
{
|
{
|
||||||
DXGIUsage->PrintAdapterList();
|
dxgiUsage->PrintAdapterList();
|
||||||
return (int)ExitCode::GPUList;
|
return (int)ExitCode::GPUList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user