d3d: Remove another use of D3DCOLOR.

Fixes more colors.
This commit is contained in:
Unknown W. Brackets committed 2014-08-26 07:46:22 -07:00
1 parent b4b81744ee
commit b8e768066f
1 file changed
+1 -5
+1 -5
View File
@@ -224,11 +224,7 @@ static const DeclTypeInfo VComp[] = {
static void VertexAttribSetup(D3DVERTEXELEMENT9 * VertexElement, u8 fmt, u8 offset, u8 usage, u8 usage_index = 0) {
memset(VertexElement, 0, sizeof(D3DVERTEXELEMENT9));
VertexElement->Offset = offset;
if (usage == D3DDECLUSAGE_COLOR && fmt == DEC_U8_4) {
VertexElement->Type = D3DDECLTYPE_D3DCOLOR;
} else {
VertexElement->Type = VComp[fmt].type;
}
VertexElement->Type = VComp[fmt].type;
VertexElement->Usage = usage;
VertexElement->UsageIndex = usage_index;
}