wip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user