diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-02-08 19:06:09 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-02-08 19:06:09 +0100 |
commit | d1c49f35a5cca15ee17939c7f2a87224f494c5b3 (patch) | |
tree | 11ffd7984b66653a7d7871fc25ab8a60e9028453 /src/capture/xcomposite_cuda.c | |
parent | ad777a5136575c00a1cd013b5877a343304c4627 (diff) |
Window capture: clear background with black color
Diffstat (limited to 'src/capture/xcomposite_cuda.c')
-rw-r--r-- | src/capture/xcomposite_cuda.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/capture/xcomposite_cuda.c b/src/capture/xcomposite_cuda.c index 7e65efa..58af0be 100644 --- a/src/capture/xcomposite_cuda.c +++ b/src/capture/xcomposite_cuda.c @@ -272,6 +272,7 @@ static void gsr_capture_xcomposite_cuda_stop(gsr_capture *cap, AVCodecContext *v static void gsr_capture_xcomposite_cuda_tick(gsr_capture *cap, AVCodecContext *video_codec_context, AVFrame **frame) { gsr_capture_xcomposite_cuda *cap_xcomp = cap->priv; + cap_xcomp->params.egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); cap_xcomp->params.egl->glClear(GL_COLOR_BUFFER_BIT); bool init_new_window = false; |