(menu_display_gl) Small cleanup

This commit is contained in:
twinaphex 2019-04-10 01:50:55 +02:00
parent 002ac5a344
commit dc80e49509
2 changed files with 2 additions and 3 deletions

View File

@ -237,7 +237,8 @@ static bool menu_display_gl_font_init_first(
return true;
}
static void menu_display_gl_scissor_begin(video_frame_info_t *video_info, int x, int y,
static void menu_display_gl_scissor_begin(
video_frame_info_t *video_info, int x, int y,
unsigned width, unsigned height)
{
glScissor(x, video_info->height - y - height, width, height);

View File

@ -136,8 +136,6 @@ static void menu_display_gl_core_draw_pipeline(menu_display_ctx_draw_t *draw,
if (draw->pipeline.id == VIDEO_SHADER_MENU_5)
yflip = 1.0f;
else
yflip = 0.0f;
memcpy(ubo_scratch_data + sizeof(math_matrix_4x4)
+ 2 * sizeof(float), &t, sizeof(t));