Fixed InstanceBuilder::request_validation_layers checking for extensions

This commit is contained in:
Charles Giessen 2020-03-22 13:25:19 -06:00
parent b330527d65
commit c467c6c228

View File

@ -480,7 +480,7 @@ InstanceBuilder& InstanceBuilder::enable_validation_layers (bool enable_validati
InstanceBuilder& InstanceBuilder::request_validation_layers (bool enable_validation) {
info.enable_validation_layers =
enable_validation &&
detail::check_extension_supported (system.available_extensions, detail::validation_layer_name);
detail::check_layer_supported (system.available_layers, detail::validation_layer_name);
return *this;
}
InstanceBuilder& InstanceBuilder::use_default_debug_messenger () {