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
1 changed files with 2 additions and 0 deletions

View File

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