Commit 24509495 authored by Steve Lhomme's avatar Steve Lhomme

direct3d9: we don't need a diffuse color

parent d7e9562b
......@@ -176,10 +176,9 @@ typedef struct
{
FLOAT x,y,z; // vertex untransformed position
FLOAT rhw; // eye distance
D3DCOLOR diffuse; // diffuse color
FLOAT tu, tv; // texture relative coordinates
} CUSTOMVERTEX;
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1)
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_TEX1)
typedef struct d3d_region_t {
D3DFORMAT format;
......@@ -418,7 +417,6 @@ static void Direct3D9SetupVertices(CUSTOMVERTEX *vertices,
vertices[i].z = 0.0f;
vertices[i].rhw = 1.0f;
vertices[i].diffuse = D3DCOLOR_ARGB(alpha, 255, 255, 255);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment