(GL raster font) Don't have to call video_driver_set_coords/

video_driver_set_mvp anymore
This commit is contained in:
twinaphex 2019-03-18 04:46:27 +01:00
parent 8361253b52
commit ab814efc62

View File

@ -249,21 +249,17 @@ static void gl_raster_font_draw_vertices(gl_raster_t *font,
const video_coords_t *coords,
video_frame_info_t *video_info)
{
video_shader_ctx_coords_t coords_data;
if (font->atlas->dirty)
{
gl_raster_font_upload_atlas(font);
font->atlas->dirty = false;
}
coords_data.handle_data = NULL;
coords_data.data = coords;
font->gl->shader->set_coords(font->gl,
font->gl->shader_data, coords);
video_driver_set_coords(&coords_data);
video_info->cb_set_mvp(font->gl,
video_info->shader_data, &font->gl->mvp_no_rot);
font->gl->shader->set_mvp(font->gl, font->gl->shader_data,
&font->gl->mvp_no_rot);
glDrawArrays(GL_TRIANGLES, 0, coords->vertices);
}