mirror of
https://github.com/libretro/RetroArch
synced 2025-01-14 09:43:27 +00:00
Cleanups
This commit is contained in:
parent
67e3e37ab0
commit
2ef0ea0cc7
@ -55,9 +55,11 @@ static const float *gfx_display_d3d8_get_default_tex_coords(void)
|
||||
|
||||
static void *gfx_display_d3d8_get_default_mvp(void *data)
|
||||
{
|
||||
static math_matrix_4x4 id;
|
||||
matrix_4x4_identity(id);
|
||||
|
||||
static float id[] = { 1.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 1.0f, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 1.0f, 0.0f,
|
||||
0.0f, 0.0f, 0.0f, 1.0f
|
||||
};
|
||||
return &id;
|
||||
}
|
||||
|
||||
|
@ -55,9 +55,11 @@ static const float *gfx_display_d3d9_get_default_tex_coords(void)
|
||||
|
||||
static void *gfx_display_d3d9_get_default_mvp(void *data)
|
||||
{
|
||||
static math_matrix_4x4 id;
|
||||
matrix_4x4_identity(id);
|
||||
|
||||
static float id[] = { 1.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 1.0f, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 1.0f, 0.0f,
|
||||
0.0f, 0.0f, 0.0f, 1.0f
|
||||
};
|
||||
return &id;
|
||||
}
|
||||
|
||||
@ -74,7 +76,7 @@ static INT32 gfx_display_prim_to_d3d9_enum(
|
||||
break;
|
||||
}
|
||||
|
||||
/* TOD/FIXME - hack */
|
||||
/* TODO/FIXME - hack */
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -145,9 +147,9 @@ static void gfx_display_d3d9_draw(gfx_display_ctx_draw_t *draw,
|
||||
color = draw->coords->color;
|
||||
|
||||
if (!vertex)
|
||||
vertex = gfx_display_d3d9_get_default_vertices();
|
||||
vertex = &d3d9_vertexes[0];
|
||||
if (!tex_coord)
|
||||
tex_coord = gfx_display_d3d9_get_default_tex_coords();
|
||||
tex_coord = &d3d9_tex_coords[0];
|
||||
|
||||
for (i = 0; i < draw->coords->vertices; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user