aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/color_conversion.c5
-rw-r--r--src/egl.c3
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;
}
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;