Let's try this

This commit is contained in:
twinaphex 2018-01-16 02:21:43 +01:00
parent 797f26421a
commit 8ddcf4d6d7
2 changed files with 26 additions and 9 deletions

View File

@ -84,7 +84,7 @@
#elif defined(HAVE_D3D9)
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1)
#elif defined(HAVE_D3D8)
#ifdef _XBOX
#if 1
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW | D3DFVF_TEX1)
#else
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_TEX1)

View File

@ -125,34 +125,51 @@ static void d3d8_renderchain_set_vertices(void *data, unsigned pass,
vert[0].y = -1.0f;
vert[0].z = 1.0f;
vert[0].u = tex_h;
vert[0].v = 0.0f;
vert[1].x = 1.0f;
vert[1].y = -1.0f;
vert[1].z = 1.0f;
vert[1].u = tex_h;
vert[1].v = 0.0f;
vert[2].x = -1.0f;
vert[2].y = 1.0f;
vert[2].z = 1.0f;
vert[2].u = 0.0f;
vert[2].v = 0.0f;
vert[3].x = 1.0f;
vert[3].y = 1.0f;
vert[3].z = 1.0f;
vert[3].u = 0.0f;
vert[3].v = 0.0f;
#ifdef _XBOX
vert[0].rhw = 0.0f;
vert[1].rhw = tex_w;
vert[2].rhw = 0.0f;
vert[3].rhw = tex_w;
vert[0].u = tex_h;
vert[0].v = 0.0f;
vert[1].u = tex_h;
vert[1].v = 0.0f;
vert[2].u = 0.0f;
vert[2].v = 0.0f;
vert[3].u = 0.0f;
vert[3].v = 0.0f;
#else
vert[0].rhw = 1.0f;
vert[1].rhw = 1.0f;
vert[2].rhw = 1.0f;
vert[3].rhw = 1.0f;
vert[0].u = tex_w;
vert[0].v = tex_h;
vert[1].u = tex_w;
vert[1].v = tex_h;
vert[2].u = tex_w;
vert[2].v = tex_h;
vert[3].u = tex_w;
vert[3].v = tex_h;
#endif
#endif
/* TODO/FIXME - might not need this for D3D8 */
/* Align texels and vertices. */
for (i = 0; i < 4; i++)
{