mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Force set __GL_THREADED_OPTIMIZATIONS to 0, which fixes window capture/wayland capture for nvidia for users that have set it to 1
This commit is contained in:
@@ -1595,6 +1595,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Stop nvidia driver from buffering frames
|
||||
setenv("__GL_MaxFramesAllowed", "1", true);
|
||||
// If this is set to 1 then cuGraphicsGLRegisterImage will fail for egl context with error: invalid OpenGL or DirectX context,
|
||||
// so we overwrite it
|
||||
setenv("__GL_THREADED_OPTIMIZATIONS", "0", 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.
|
||||
|
||||
Reference in New Issue
Block a user