From b8e768066f5e784fc6eaba95f1146cb25abcf30d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 26 Aug 2014 07:37:19 -0700 Subject: [PATCH] d3d: Remove another use of D3DCOLOR. Fixes more colors. --- GPU/Directx9/TransformPipelineDX9.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/GPU/Directx9/TransformPipelineDX9.cpp b/GPU/Directx9/TransformPipelineDX9.cpp index c9721ff655..354b15d984 100644 --- a/GPU/Directx9/TransformPipelineDX9.cpp +++ b/GPU/Directx9/TransformPipelineDX9.cpp @@ -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; }