[App] Only start D3D12 if DLL exists
This commit is contained in:
@@ -105,10 +105,12 @@ std::unique_ptr<gpu::GraphicsSystem> CreateGraphicsSystem() {
|
||||
std::unique_ptr<gpu::GraphicsSystem> best;
|
||||
|
||||
#if XE_PLATFORM_WIN32
|
||||
best = std::unique_ptr<gpu::GraphicsSystem>(
|
||||
new xe::gpu::d3d12::D3D12GraphicsSystem());
|
||||
if (best) {
|
||||
return best;
|
||||
if (xe::gpu::d3d12::D3D12GraphicsSystem::IsD3D12APIAvailable()) {
|
||||
best = std::unique_ptr<gpu::GraphicsSystem>(
|
||||
new xe::gpu::d3d12::D3D12GraphicsSystem());
|
||||
if (best) {
|
||||
return best;
|
||||
}
|
||||
}
|
||||
#endif // XE_PLATFORM_WIN32
|
||||
best = std::unique_ptr<gpu::GraphicsSystem>(
|
||||
|
||||
Reference in New Issue
Block a user