diff options
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7277b11..f04b1af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1587,6 +1587,10 @@ int main(int argc, char **argv) { // Stop nvidia driver from buffering frames setenv("__GL_MaxFramesAllowed", "1", true); + // Some people set this to nvidia (for nvdec) or vdpau (for nvidia vdpau), which breaks gpu screen recorder since + // nvidia doesn't support vaapi and nvidia-vaapi-driver doesn't support encoding yet. + // Let vaapi find the match vaapi driver instead of forcing a specific one. + setenv("LIBVA_DRIVER_NAME", "", true); if(argc <= 1) usage_full(); |