(drivers_display) Cleanups

This commit is contained in:
twinaphex 2020-09-11 13:46:35 +02:00
parent 60b26bd490
commit 343fef1264
2 changed files with 6 additions and 6 deletions

View File

@ -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++)
{

View File

@ -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();