Fix startup when /dev/dri doesn't exist (#1027)

This commit is contained in:
Mark Dietzer 2023-03-11 07:27:07 -08:00 committed by GitHub
parent 21a728ccd2
commit fbe5e2486f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,6 +995,7 @@ std::vector<std::string> kms_display_names() {
if(!fs::exists("/dev/dri")) {
BOOST_LOG(warning) << "Couldn't find /dev/dri, kmsgrab won't be enabled"sv;
return {};
}
if(!gbm::create_device) {