diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-21 19:12:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-21 19:12:24 +0200 |
commit | 8b0723a4f20b115c8d3394bcdf24b60b4895a345 (patch) | |
tree | 31f872fcbcfb611091a7d6911ce3320df2f980dd /src/main.cpp | |
parent | a1d31a5cf0b90d3afabc57d5a6f4ccdfb1eeb054 (diff) |
Fix window capture
Diffstat (limited to 'src/main.cpp')
-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 1c1e68c..ed1671d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1450,6 +1450,8 @@ int main(int argc, char **argv) { capture_target = "screen"; } + gsr_egl_unload(&egl); + gsr_capture_nvfbc_params nvfbc_params; nvfbc_params.dpy = dpy; nvfbc_params.display_to_capture = capture_target; @@ -1497,6 +1499,7 @@ int main(int argc, char **argv) { case GSR_GPU_VENDOR_AMD: { gsr_capture_xcomposite_vaapi_params xcomposite_params; xcomposite_params.egl = &egl; + xcomposite_params.dpy = dpy; xcomposite_params.window = src_window_id; xcomposite_params.follow_focused = follow_focused; xcomposite_params.region_size = region_size; @@ -1509,6 +1512,7 @@ int main(int argc, char **argv) { case GSR_GPU_VENDOR_INTEL: { gsr_capture_xcomposite_vaapi_params xcomposite_params; xcomposite_params.egl = &egl; + xcomposite_params.dpy = dpy; xcomposite_params.window = src_window_id; xcomposite_params.follow_focused = follow_focused; xcomposite_params.region_size = region_size; @@ -1521,6 +1525,7 @@ int main(int argc, char **argv) { case GSR_GPU_VENDOR_NVIDIA: { gsr_capture_xcomposite_cuda_params xcomposite_params; xcomposite_params.egl = &egl; + xcomposite_params.dpy = dpy; xcomposite_params.window = src_window_id; xcomposite_params.follow_focused = follow_focused; xcomposite_params.region_size = region_size; |