mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
(GL1) Cleanups
This commit is contained in:
parent
ab814efc62
commit
03641f2378
@ -237,22 +237,12 @@ static void gl1_raster_font_draw_vertices(gl1_raster_t *font,
|
|||||||
const video_coords_t *coords,
|
const video_coords_t *coords,
|
||||||
video_frame_info_t *video_info)
|
video_frame_info_t *video_info)
|
||||||
{
|
{
|
||||||
video_shader_ctx_coords_t coords_data;
|
|
||||||
|
|
||||||
if (font->atlas->dirty)
|
if (font->atlas->dirty)
|
||||||
{
|
{
|
||||||
gl1_raster_font_upload_atlas(font);
|
gl1_raster_font_upload_atlas(font);
|
||||||
font->atlas->dirty = false;
|
font->atlas->dirty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
coords_data.handle_data = NULL;
|
|
||||||
coords_data.data = coords;
|
|
||||||
|
|
||||||
video_driver_set_coords(&coords_data);
|
|
||||||
|
|
||||||
/*video_info->cb_set_mvp(font->gl,
|
|
||||||
video_info->shader_data, &font->gl->mvp_no_rot);*/
|
|
||||||
|
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glLoadMatrixf(font->gl->mvp.data);
|
glLoadMatrixf(font->gl->mvp.data);
|
||||||
|
@ -100,9 +100,7 @@ static void menu_display_gl1_draw(menu_display_ctx_draw_t *draw,
|
|||||||
video_frame_info_t *video_info)
|
video_frame_info_t *video_info)
|
||||||
{
|
{
|
||||||
video_shader_ctx_mvp_t mvp;
|
video_shader_ctx_mvp_t mvp;
|
||||||
video_shader_ctx_coords_t coords;
|
gl1_t *gl1 = (gl1_t*)video_info->userdata;
|
||||||
gl1_t *gl1 = video_info ?
|
|
||||||
(gl1_t*)video_info->userdata : NULL;
|
|
||||||
|
|
||||||
if (!gl1 || !draw)
|
if (!gl1 || !draw)
|
||||||
return;
|
return;
|
||||||
@ -120,11 +118,6 @@ static void menu_display_gl1_draw(menu_display_ctx_draw_t *draw,
|
|||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, (GLuint)draw->texture);
|
glBindTexture(GL_TEXTURE_2D, (GLuint)draw->texture);
|
||||||
|
|
||||||
coords.handle_data = gl1;
|
|
||||||
coords.data = draw->coords;
|
|
||||||
|
|
||||||
video_driver_set_coords(&coords);
|
|
||||||
|
|
||||||
mvp.data = gl1;
|
mvp.data = gl1;
|
||||||
mvp.matrix = draw->matrix_data ? (math_matrix_4x4*)draw->matrix_data
|
mvp.matrix = draw->matrix_data ? (math_matrix_4x4*)draw->matrix_data
|
||||||
: (math_matrix_4x4*)menu_display_gl1_get_default_mvp(video_info);
|
: (math_matrix_4x4*)menu_display_gl1_get_default_mvp(video_info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user