diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-22 23:32:58 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-22 23:32:58 +0200 |
commit | 0b2b4c0b035513833ba152d48f9563fef0214e24 (patch) | |
tree | daa632cba6f3279eeae154e1d4ad2d728981e6f3 | |
parent | d45597e104fa3bd80a6f1922f2fdeaa6a0eff724 (diff) |
Dont do glClear/glSwapBuffers on nvidia wayland, it's not needed
-rw-r--r-- | src/capture/kms_cuda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capture/kms_cuda.c b/src/capture/kms_cuda.c index d6d8774..d5ff84f 100644 --- a/src/capture/kms_cuda.c +++ b/src/capture/kms_cuda.c @@ -191,7 +191,7 @@ static void gsr_capture_kms_cuda_tick(gsr_capture *cap, AVCodecContext *video_co gsr_capture_kms_cuda *cap_kms = cap->priv; // TODO: - cap_kms->params.egl->glClear(GL_COLOR_BUFFER_BIT); + //cap_kms->params.egl->glClear(GL_COLOR_BUFFER_BIT); if(!cap_kms->created_hw_frame) { cap_kms->created_hw_frame = true; @@ -408,7 +408,7 @@ static int gsr_capture_kms_cuda_capture(gsr_capture *cap, AVFrame *frame) { gsr_capture_kms_register_egl_image_in_cuda(cap_kms, image); cap_kms->params.egl->eglDestroyImage(cap_kms->params.egl->egl_display, image); - cap_kms->params.egl->eglSwapBuffers(cap_kms->params.egl->egl_display, cap_kms->params.egl->egl_surface); + //cap_kms->params.egl->eglSwapBuffers(cap_kms->params.egl->egl_display, cap_kms->params.egl->egl_surface); frame->linesize[0] = frame->width * 4; |