diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 1bd95de93c..2d4732d04b 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -526,6 +526,9 @@ static void glui_context_bg_destroy(glui_handle_t *glui) glDeleteTextures(1, &glui->textures.bg.id); if (glui->textures.white) glDeleteTextures(1, &glui->textures.white); + + glui->textures.bg.id = 0; + glui->textures.white = 0; } }