diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 51a7a2cd1..bd63347c8 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -3659,8 +3659,6 @@ meta_renderer_native_initable_init (GInitable *initable, GList *gpus; GList *l; - renderer_native->primary_gpu_kms = choose_primary_gpu (monitor_manager); - gpus = meta_monitor_manager_get_gpus (monitor_manager); for (l = gpus; l; l = l->next) { @@ -3670,6 +3668,8 @@ meta_renderer_native_initable_init (GInitable *initable, return FALSE; } + renderer_native->primary_gpu_kms = choose_primary_gpu (monitor_manager); + return TRUE; }