backend: gl: do not leak back and default mask textures

they're generated during backend initialization and now deleted during
deinitialization
This commit is contained in:
Maxim Solovyov 2023-06-12 21:24:57 +03:00
parent 5826adf853
commit 8245de27ed
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -976,6 +976,9 @@ void gl_deinit(struct gl_data *gd) {
gd->default_shader = NULL;
}
glDeleteTextures(1, &gd->default_mask_texture);
glDeleteTextures(1, &gd->back_texture);
gl_check_err();
}