Remove extra swapBuffer in kms capture

This commit is contained in:
dec05eba
2023-04-15 20:39:02 +02:00
parent c9c615d4c7
commit c510bc5ae5
4 changed files with 11 additions and 4 deletions

View File

@@ -116,10 +116,15 @@ int gsr_shader_init(gsr_shader *self, gsr_egl *egl, const char *vertex_shader, c
}
void gsr_shader_deinit(gsr_shader *self) {
if(!self->egl)
return;
if(self->program_id) {
self->egl->glDeleteProgram(self->program_id);
self->program_id = 0;
}
self->egl = NULL;
}
int gsr_shader_bind_attribute_location(gsr_shader *self, const char *attribute, int location) {