mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
(GL raster font) Don't have to call video_driver_set_coords/
video_driver_set_mvp anymore
This commit is contained in:
parent
8361253b52
commit
ab814efc62
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user