mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
(drivers_display) Cleanups
This commit is contained in:
parent
60b26bd490
commit
343fef1264
@ -143,9 +143,9 @@ static void gfx_display_d3d8_draw(gfx_display_ctx_draw_t *draw,
|
||||
color = draw->coords->color;
|
||||
|
||||
if (!vertex)
|
||||
vertex = gfx_display_d3d8_get_default_vertices();
|
||||
vertex = &d3d8_vertexes[0];
|
||||
if (!tex_coord)
|
||||
tex_coord = gfx_display_d3d8_get_default_tex_coords();
|
||||
tex_coord = &d3d8_tex_coords[0];
|
||||
|
||||
for (i = 0; i < draw->coords->vertices; i++)
|
||||
{
|
||||
|
@ -107,11 +107,11 @@ static void gfx_display_gl1_draw(gfx_display_ctx_draw_t *draw,
|
||||
return;
|
||||
|
||||
if (!draw->coords->vertex)
|
||||
draw->coords->vertex = gfx_display_gl1_get_default_vertices();
|
||||
draw->coords->vertex = &gl1_menu_vertexes[0];
|
||||
if (!draw->coords->tex_coord)
|
||||
draw->coords->tex_coord = gfx_display_gl1_get_default_tex_coords();
|
||||
draw->coords->tex_coord = &gl1_menu_tex_coords[0];
|
||||
if (!draw->coords->lut_tex_coord)
|
||||
draw->coords->lut_tex_coord = gfx_display_gl1_get_default_tex_coords();
|
||||
draw->coords->lut_tex_coord = &gl1_menu_tex_coords[0];
|
||||
if (!draw->texture)
|
||||
return;
|
||||
|
||||
@ -123,7 +123,7 @@ static void gfx_display_gl1_draw(gfx_display_ctx_draw_t *draw,
|
||||
|
||||
mvp.data = gl1;
|
||||
mvp.matrix = draw->matrix_data ? (math_matrix_4x4*)draw->matrix_data
|
||||
: (math_matrix_4x4*)gfx_display_gl1_get_default_mvp(gl1);
|
||||
: (math_matrix_4x4*)&gl1->mvp_no_rot;
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glPushMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user