diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-09-07 19:19:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-09-07 19:19:00 +0200 |
commit | 7d358580a21061136919fec2b980daba3d05d741 (patch) | |
tree | 0e6c70444ffb0c6e7ac88380c8aced2b706f312c /src | |
parent | d6cf3b73549f48bb1a640e6359fc45ee776b7188 (diff) |
wip
Diffstat (limited to 'src')
-rw-r--r-- | src/color_conversion.c | 5 | ||||
-rw-r--r-- | src/egl.c | 3 |
2 files changed, 5 insertions, 3 deletions
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; } @@ -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; |