diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-21 18:56:34 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-21 18:56:34 +0200 |
commit | a1d31a5cf0b90d3afabc57d5a6f4ccdfb1eeb054 (patch) | |
tree | 52376ebfde02b88b624e43c1d08f06fd512e599a /src/color_conversion.c | |
parent | 5a9673b1d751ca82f33db31c443dd2eb53cf693b (diff) |
Fix capture not working on intel + wayland
Ignore nouveau cards.
Fix lag on start of recording on amd/intel by only loading egl once,
on startup.
Diffstat (limited to 'src/color_conversion.c')
-rw-r--r-- | src/color_conversion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color_conversion.c b/src/color_conversion.c index 5b61325..8f8d4bc 100644 --- a/src/color_conversion.c +++ b/src/color_conversion.c @@ -322,7 +322,7 @@ int gsr_color_conversion_draw(gsr_color_conversion *self, unsigned int texture_i { self->params.egl->glBindFramebuffer(GL_FRAMEBUFFER, self->framebuffers[0]); - //cap_xcomp->egl.glClear(GL_COLOR_BUFFER_BIT); // TODO: Do this in a separate clear_ function. We want to do that when using multiple drm to create the final image (multiple monitors for example) + //cap_xcomp->params.egl->glClear(GL_COLOR_BUFFER_BIT); // TODO: Do this in a separate clear_ function. We want to do that when using multiple drm to create the final image (multiple monitors for example) gsr_shader_use(&self->shaders[0]); self->params.egl->glUniform1f(self->rotation_uniforms[0], rotation); @@ -331,7 +331,7 @@ int gsr_color_conversion_draw(gsr_color_conversion *self, unsigned int texture_i if(self->params.num_destination_textures > 1) { self->params.egl->glBindFramebuffer(GL_FRAMEBUFFER, self->framebuffers[1]); - //cap_xcomp->egl.glClear(GL_COLOR_BUFFER_BIT); + //cap_xcomp->params.egl->glClear(GL_COLOR_BUFFER_BIT); gsr_shader_use(&self->shaders[1]); self->params.egl->glUniform1f(self->rotation_uniforms[1], rotation); |