diff --git a/src/backend/gl/gl_common.c b/src/backend/gl/gl_common.c index 42f7136dc6..df502dc0e1 100644 --- a/src/backend/gl/gl_common.c +++ b/src/backend/gl/gl_common.c @@ -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(); } diff --git a/src/backend/gl/gl_common.h b/src/backend/gl/gl_common.h index f7e721c289..5e3a505d0b 100644 --- a/src/backend/gl/gl_common.h +++ b/src/backend/gl/gl_common.h @@ -188,10 +188,6 @@ void gl_present(backend_t *base, const region_t *); bool gl_read_pixel(backend_t *base, void *image_data, int x, int y, struct color *output); enum device_status gl_device_status(backend_t *base); -static inline void gl_delete_texture(GLuint texture) { - glDeleteTextures(1, &texture); -} - /** * Get a textual representation of an OpenGL error. */