From a4e35634e023f5ee601fa6430ecd249d4d224bf2 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 9 Mar 2019 12:34:55 +0100 Subject: [PATCH] Fixup some casts for CXX_BUILD. --- menu/drivers_display/menu_display_gl_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/drivers_display/menu_display_gl_core.c b/menu/drivers_display/menu_display_gl_core.c index b5e9372718..22d9b26672 100644 --- a/menu/drivers_display/menu_display_gl_core.c +++ b/menu/drivers_display/menu_display_gl_core.c @@ -231,20 +231,20 @@ static void menu_display_gl_core_draw(menu_display_ctx_draw_t *draw, { glUniform4fv(loc->flat_ubo_vertex, (GLsizei)((draw->pipeline.backend_data_size + 15) / 16), - draw->pipeline.backend_data); + (const GLfloat*)draw->pipeline.backend_data); } if (loc && loc->flat_ubo_fragment >= 0) { glUniform4fv(loc->flat_ubo_fragment, (GLsizei)((draw->pipeline.backend_data_size + 15) / 16), - draw->pipeline.backend_data); + (const GLfloat*)draw->pipeline.backend_data); } if (!loc) { const math_matrix_4x4 *mat = draw->matrix_data - ? draw->matrix_data : menu_display_gl_core_get_default_mvp(video_info); + ? (const math_matrix_4x4*)draw->matrix_data : menu_display_gl_core_get_default_mvp(video_info); if (gl->pipelines.alpha_blend_loc.flat_ubo_vertex >= 0) { glUniform4fv(gl->pipelines.alpha_blend_loc.flat_ubo_vertex,