Use opengl capture for nvfbc (prepare for vulkan capture without cuda)

This commit is contained in:
dec05eba
2024-03-04 20:30:43 +01:00
parent d0c221a233
commit 0d89378021
14 changed files with 397 additions and 114 deletions

View File

@@ -188,8 +188,8 @@ static vec2i swap_vec2i(vec2i value) {
}
bool gsr_capture_kms_capture(gsr_capture_kms *self, gsr_capture_base *base, AVFrame *frame, gsr_egl *egl, bool hdr, bool screen_plane_use_modifiers, bool cursor_texture_is_external) {
egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
egl->glClear(GL_COLOR_BUFFER_BIT);
//egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
egl->glClear(0);
gsr_capture_kms_cleanup_kms_fds(self);