diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 673ad4355d..c8b6e215c9 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -681,9 +681,9 @@ static void glui_context_bg_destroy(glui_handle_t *glui) if (glui) { if (glui->textures.bg.id) - glDeleteTextures(1, &glui->textures.bg.id); + glDeleteTextures(1, (const GLuint*)&glui->textures.bg.id); if (glui->textures.white) - glDeleteTextures(1, &glui->textures.white); + glDeleteTextures(1, (const GLuint*)&glui->textures.white); glui->textures.bg.id = 0; glui->textures.white = 0; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 69a53b2c5c..319e83c073 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1932,7 +1932,7 @@ static void xmb_free(void *data) static void xmb_context_bg_destroy(xmb_handle_t *xmb) { if (xmb->textures.bg.id) - glDeleteTextures(1, &xmb->textures.bg.id); + glDeleteTextures(1, (const GLuint*)&xmb->textures.bg.id); } static bool xmb_load_image(void *data, menu_image_type_t type) @@ -2457,8 +2457,8 @@ static void xmb_context_destroy_horizontal_list(xmb_handle_t *xmb, if (!node) continue; - glDeleteTextures(1, &node->icon); - glDeleteTextures(1, &node->content_icon); + glDeleteTextures(1, (const GLuint*)&node->icon); + glDeleteTextures(1, (const GLuint*)&node->content_icon); } } @@ -2477,7 +2477,7 @@ static void xmb_context_destroy(void) return; for (i = 0; i < XMB_TEXTURE_LAST; i++) - glDeleteTextures(1, &xmb->textures.list[i].id); + glDeleteTextures(1, (const GLuint*)&xmb->textures.list[i].id); xmb_context_destroy_horizontal_list(xmb, menu);