aboutsummaryrefslogtreecommitdiff
path: root/src/capture/xcomposite_cuda.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-09 18:59:04 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-10 10:09:59 +0100
commit2efcc6a567903d2648af416fc5ed09009aca4788 (patch)
tree500e2a096ee901e01efd1f70af8a6a3516985d7f /src/capture/xcomposite_cuda.c
parent45ad3695b657b33c332bbfd3b08d6a15a5072587 (diff)
Allow overclocking on window capture nvidia
Diffstat (limited to 'src/capture/xcomposite_cuda.c')
-rw-r--r--src/capture/xcomposite_cuda.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/capture/xcomposite_cuda.c b/src/capture/xcomposite_cuda.c
index 8a8f600..27d3864 100644
--- a/src/capture/xcomposite_cuda.c
+++ b/src/capture/xcomposite_cuda.c
@@ -26,8 +26,7 @@ static int gsr_capture_xcomposite_cuda_start(gsr_capture *cap, AVCodecContext *v
return res;
}
- // TODO: overclocking is not supported on wayland...
- if(!gsr_cuda_load(&cap_xcomp->cuda, NULL, false)) {
+ if(!gsr_cuda_load(&cap_xcomp->cuda, cap_xcomp->xcomposite.params.egl->x11.dpy, cap_xcomp->overclock)) {
fprintf(stderr, "gsr error: gsr_capture_kms_cuda_start: failed to load cuda\n");
gsr_capture_xcomposite_cuda_stop(cap, video_codec_context);
return -1;