mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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 void *gfx_display_d3d8_get_default_mvp(void *data)
|
||||||
{
|
{
|
||||||
static math_matrix_4x4 id;
|
static float id[] = { 1.0f, 0.0f, 0.0f, 0.0f,
|
||||||
matrix_4x4_identity(id);
|
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;
|
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 void *gfx_display_d3d9_get_default_mvp(void *data)
|
||||||
{
|
{
|
||||||
static math_matrix_4x4 id;
|
static float id[] = { 1.0f, 0.0f, 0.0f, 0.0f,
|
||||||
matrix_4x4_identity(id);
|
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;
|
return &id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +76,7 @@ static INT32 gfx_display_prim_to_d3d9_enum(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TOD/FIXME - hack */
|
/* TODO/FIXME - hack */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,9 +147,9 @@ static void gfx_display_d3d9_draw(gfx_display_ctx_draw_t *draw,
|
|||||||
color = draw->coords->color;
|
color = draw->coords->color;
|
||||||
|
|
||||||
if (!vertex)
|
if (!vertex)
|
||||||
vertex = gfx_display_d3d9_get_default_vertices();
|
vertex = &d3d9_vertexes[0];
|
||||||
if (!tex_coord)
|
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++)
|
for (i = 0; i < draw->coords->vertices; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user