mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-06 06:50:43 +09:00
Remove even more old conditions
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user