mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
monitor-manager-kms: Don't add GPU if it fails
This is a small mistake spotted while working on a solution for #77. When a GPU fails to initialize, we're adding them anyway, which might have pretty bad consequences when trying to use these NULL GPUs. Issue: #77
This commit is contained in:
parent
7fdac6d310
commit
773b8384fa
@ -683,6 +683,7 @@ meta_monitor_manager_kms_initable_init (GInitable *initable,
|
||||
{
|
||||
g_warning ("Failed to open secondary gpu '%s': %s",
|
||||
gpu_path, secondary_error->message);
|
||||
continue;
|
||||
}
|
||||
|
||||
meta_monitor_manager_add_gpu (META_MONITOR_MANAGER (manager_kms),
|
||||
|
Loading…
Reference in New Issue
Block a user