1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 01:24:12 +01:00

Throw error if requested layer is not installed (#100)

* Warn if requested layer is not enabled

* Replace warning with hard error
This commit is contained in:
Gabriel Majeri 2018-02-24 23:07:31 +02:00 committed by Philip Rebohle
parent 82fc851f32
commit f582c4e1ce

View File

@ -78,6 +78,8 @@ namespace dxvk {
for (auto l : layers) { for (auto l : layers) {
if (layersAvailable.supports(l)) if (layersAvailable.supports(l))
layersEnabled.add(l); layersEnabled.add(l);
else
throw DxvkError(str::format("Requested layer not installed: ", l));
} }
return layersEnabled; return layersEnabled;