diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-26 17:48:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-26 17:48:47 +0200 |
commit | 2601ca0206fa65b754311f6ffb65658f5368a693 (patch) | |
tree | 346ee44de02df91b5289349141a1d11a3cc08c61 /src | |
parent | cf5621da81fecf1bd8f25f1a0a25d68f05c90a17 (diff) |
Disable prime-run for now until the option to select a gpu device is added
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 608fc78..c0727af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4028,6 +4028,11 @@ int main(int argc, char **argv) { unsetenv("__GL_SYNC_TO_VBLANK"); // Same as above, but for amd/intel unsetenv("vblank_mode"); + // Disable prime-run and similar options as it doesn't work, the monitor to capture has to be run on the same device + unsetenv("__NV_PRIME_RENDER_OFFLOAD"); + unsetenv("__NV_PRIME_RENDER_OFFLOAD_PROVIDER"); + unsetenv("__GLX_VENDOR_LIBRARY_NAME"); + unsetenv("__VK_LAYER_NV_optimus"); dpy = XOpenDisplay(NULL); gsr_info_exit_status = get_gpu_screen_recorder_info(&gsr_info); |