Silence unused function with --disable-menu.

gfx/drivers/gl_core.c:1529:13: warning: ‘gl_core_draw_menu_texture’ defined but not used [-Wunused-function]
 static void gl_core_draw_menu_texture(gl_core_t *gl, video_frame_info_t *video_info)
             ^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
orbea 2019-05-04 08:26:36 -07:00
parent 6552828244
commit 9e9849170d

View File

@ -1526,6 +1526,7 @@ static void gl_core_update_cpu_texture(gl_core_t *gl,
}
}
#if defined(HAVE_MENU)
static void gl_core_draw_menu_texture(gl_core_t *gl, video_frame_info_t *video_info)
{
const float vbo_data[] = {
@ -1566,6 +1567,7 @@ static void gl_core_draw_menu_texture(gl_core_t *gl, video_frame_info_t *video_i
glDisable(GL_BLEND);
}
#endif
static bool gl_core_frame(void *data, const void *frame,
unsigned frame_width, unsigned frame_height,