Remove even more old conditions

This commit is contained in:
dec05eba
2024-07-06 02:35:14 +02:00
parent 85c137b617
commit f2589042ea

View File

@@ -1724,18 +1724,7 @@ static gsr_capture* create_capture_impl(const char *window_str, const char *scre
} }
} }
if(egl->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA) { if(egl->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA && !wayland) {
if(wayland) {
gsr_capture_kms_params kms_params;
kms_params.egl = egl;
kms_params.display_to_capture = window_str;
kms_params.hdr = video_codec_is_hdr(video_codec);
kms_params.color_range = color_range;
kms_params.record_cursor = record_cursor;
capture = gsr_capture_kms_create(&kms_params);
if(!capture)
_exit(1);
} else {
const char *capture_target = window_str; const char *capture_target = window_str;
bool direct_capture = strcmp(window_str, "screen-direct") == 0; bool direct_capture = strcmp(window_str, "screen-direct") == 0;
if(direct_capture) { if(direct_capture) {
@@ -1765,7 +1754,6 @@ static gsr_capture* create_capture_impl(const char *window_str, const char *scre
capture = gsr_capture_nvfbc_create(&nvfbc_params); capture = gsr_capture_nvfbc_create(&nvfbc_params);
if(!capture) if(!capture)
_exit(1); _exit(1);
}
} else { } else {
gsr_capture_kms_params kms_params; gsr_capture_kms_params kms_params;
kms_params.egl = egl; kms_params.egl = egl;