From 7d358580a21061136919fec2b980daba3d05d741 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 7 Sep 2023 19:19:00 +0200 Subject: wip --- src/color_conversion.c | 5 ++--- src/egl.c | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/color_conversion.c b/src/color_conversion.c index caf0488..e44b80a 100644 --- a/src/color_conversion.c +++ b/src/color_conversion.c @@ -136,7 +136,7 @@ static unsigned int load_shader_uv(gsr_shader *shader, gsr_egl *egl, int *rotati return 0; } -static int loader_framebuffers(gsr_color_conversion *self) { +static int load_framebuffers(gsr_color_conversion *self) { const unsigned int draw_buffer = GL_COLOR_ATTACHMENT0; self->params.egl->glGenFramebuffers(MAX_FRAMEBUFFERS, self->framebuffers); @@ -223,7 +223,7 @@ int gsr_color_conversion_init(gsr_color_conversion *self, const gsr_color_conver } } - if(loader_framebuffers(self) != 0) + if(load_framebuffers(self) != 0) goto err; if(create_vertices(self) != 0) @@ -232,7 +232,6 @@ int gsr_color_conversion_init(gsr_color_conversion *self, const gsr_color_conver return 0; err: - self->params.egl->glBindFramebuffer(GL_FRAMEBUFFER, 0); gsr_color_conversion_deinit(self); return -1; } diff --git a/src/egl.c b/src/egl.c index 00a5b22..9e1d54d 100644 --- a/src/egl.c +++ b/src/egl.c @@ -572,6 +572,9 @@ bool gsr_egl_start_capture(gsr_egl *self, const char *monitor_to_capture) { if(!gsr_egl_supports_wayland_capture(self)) return false; + if(self->wayland.frame_callback) + return false; + self->wayland.output_to_capture = get_wayland_output_by_name(self, monitor_to_capture); if(!self->wayland.output_to_capture) return false; -- cgit v1.2.3