mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Test for availability of crct info before using it
This commit is contained in:
@@ -950,6 +950,10 @@ void correlate_to_wayland(std::vector<kms::card_descriptor_t> &cds) {
|
||||
std::vector<std::string> kms_display_names() {
|
||||
int count = 0;
|
||||
|
||||
if(!fs::exists("/dev/dri")) {
|
||||
BOOST_LOG(warning) << "Couldn't find /dev/dri, kmsgrab won't be enabled"sv;
|
||||
}
|
||||
|
||||
if(!gbm::create_device) {
|
||||
BOOST_LOG(warning) << "libgbm not initialized"sv;
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user