aboutsummaryrefslogtreecommitdiff
path: root/src/capture/kms_cuda.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-21 15:11:13 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-21 15:11:13 +0100
commitb19f88d769958af067c86f6b98b7d579a10acc29 (patch)
tree7eecff5e88317afd484b0affaeb800a7e97925ba /src/capture/kms_cuda.c
parentc2af57a978b29e536260b6bf8440827a4d8e01f7 (diff)
Fix missing color range set in color conversion for nvidia window capture
Diffstat (limited to 'src/capture/kms_cuda.c')
-rw-r--r--src/capture/kms_cuda.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/capture/kms_cuda.c b/src/capture/kms_cuda.c
index 0349228..a9f1f8e 100644
--- a/src/capture/kms_cuda.c
+++ b/src/capture/kms_cuda.c
@@ -72,9 +72,6 @@ static bool gsr_capture_kms_cuda_should_stop(gsr_capture *cap, bool *err) {
static void gsr_capture_kms_unload_cuda_graphics(gsr_capture_kms_cuda *cap_kms) {
if(cap_kms->cuda.cu_ctx) {
- CUcontext old_ctx;
- cap_kms->cuda.cuCtxPushCurrent_v2(cap_kms->cuda.cu_ctx);
-
for(int i = 0; i < 2; ++i) {
if(cap_kms->cuda_graphics_resources[i]) {
cap_kms->cuda.cuGraphicsUnmapResources(1, &cap_kms->cuda_graphics_resources[i], 0);
@@ -82,8 +79,6 @@ static void gsr_capture_kms_unload_cuda_graphics(gsr_capture_kms_cuda *cap_kms)
cap_kms->cuda_graphics_resources[i] = 0;
}
}
-
- cap_kms->cuda.cuCtxPopCurrent_v2(&old_ctx);
}
}