From 0d89378021b9e8913b521164d1bc436d9bc2630f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 4 Mar 2024 20:30:43 +0100 Subject: Use opengl capture for nvfbc (prepare for vulkan capture without cuda) --- src/capture/xcomposite_vaapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/capture/xcomposite_vaapi.c') diff --git a/src/capture/xcomposite_vaapi.c b/src/capture/xcomposite_vaapi.c index 941467a..134c8bb 100644 --- a/src/capture/xcomposite_vaapi.c +++ b/src/capture/xcomposite_vaapi.c @@ -195,8 +195,8 @@ static int gsr_capture_xcomposite_vaapi_start(gsr_capture *cap, AVCodecContext * static void gsr_capture_xcomposite_vaapi_tick(gsr_capture *cap, AVCodecContext *video_codec_context) { gsr_capture_xcomposite_vaapi *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); + //cap_xcomp->params.egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); + cap_xcomp->params.egl->glClear(0); bool init_new_window = false; while(XPending(cap_xcomp->params.egl->x11.dpy)) { -- cgit v1.2.3