From 6be0324528d240d135fde47aed41a26979f4f0a6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Jul 2024 11:32:59 +0200 Subject: Info: error if invalid drm card --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 48d94f2..8c80164 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1754,7 +1754,7 @@ static void info_command() { egl.card_path[0] = '\0'; if(monitor_capture_use_drm(&egl, wayland)) { // TODO: Allow specifying another card, and in other places - if(!gsr_get_valid_card_path(&egl, egl.card_path, false)) { + if(!gsr_get_valid_card_path(&egl, egl.card_path, true)) { fprintf(stderr, "Error: no /dev/dri/cardX device found. If you are running GPU Screen Recorder with prime-run then try running without it. Also make sure that you have at least one connected monitor or record a single window instead on X11\n"); _exit(23); } -- cgit v1.2.3