mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 10:51:06 +00:00
d3d: Remove another use of D3DCOLOR.
Fixes more colors.
This commit is contained in:
parent
b4b81744ee
commit
b8e768066f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user