diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-02-27 00:24:14 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-02-27 00:24:14 +0100 |
commit | 40bea726eb34cc1b0868d9a81e4b53534ab80c80 (patch) | |
tree | e537a85089c212551e1baa5ab837aadad3d41594 /src | |
parent | df91eec91dcf8558fd63fe1b70c5698245be7e37 (diff) |
glClearColor, update readme with video link of gpu screen recorder vs obs smoothness
Diffstat (limited to 'src')
-rw-r--r-- | src/capture/kms_cuda.c | 1 | ||||
-rw-r--r-- | src/capture/kms_vaapi.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/capture/kms_cuda.c b/src/capture/kms_cuda.c index b3e8361..9ef25f8 100644 --- a/src/capture/kms_cuda.c +++ b/src/capture/kms_cuda.c @@ -457,6 +457,7 @@ static int gsr_capture_kms_cuda_capture(gsr_capture *cap, AVFrame *frame) { (void)frame; gsr_capture_kms_cuda *cap_kms = cap->priv; + cap_kms->params.egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); cap_kms->params.egl->glClear(GL_COLOR_BUFFER_BIT); for(int i = 0; i < cap_kms->kms_response.num_fds; ++i) { diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c index d86389c..18a8c2d 100644 --- a/src/capture/kms_vaapi.c +++ b/src/capture/kms_vaapi.c @@ -456,6 +456,7 @@ static vec2i swap_vec2i(vec2i value) { static int gsr_capture_kms_vaapi_capture(gsr_capture *cap, AVFrame *frame) { gsr_capture_kms_vaapi *cap_kms = cap->priv; + cap_kms->params.egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); cap_kms->params.egl->glClear(GL_COLOR_BUFFER_BIT); for(int i = 0; i < cap_kms->kms_response.num_fds; ++i) { |