Skip to content

Commit 715dc5d

Browse files
committed
More vertex attribute fixes
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent eb4ab58 commit 715dc5d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

MarathonRecomp/gpu/video.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4940,19 +4940,20 @@ static GuestVertexDeclaration* CreateVertexDeclarationWithoutAddRef(GuestVertexE
49404940
case D3DDECLUSAGE_TANGENT:
49414941
case D3DDECLUSAGE_BINORMAL:
49424942
case D3DDECLUSAGE_BLENDINDICES:
4943-
format = RenderFormat::R32_UINT;
4943+
format = RenderFormat::R32G32B32_FLOAT;
49444944
break;
49454945
}
49464946

49474947
inputElements.emplace_back(ConvertDeclUsage(usage), usageIndex, location, format, 15, 0);
49484948
};
49494949

49504950
addInputElement(D3DDECLUSAGE_POSITION, 0);
4951+
addInputElement(D3DDECLUSAGE_POSITION, 1);
4952+
addInputElement(D3DDECLUSAGE_POSITION, 2);
4953+
addInputElement(D3DDECLUSAGE_POSITION, 3);
49514954
addInputElement(D3DDECLUSAGE_NORMAL, 0);
49524955
addInputElement(D3DDECLUSAGE_TANGENT, 0);
4953-
addInputElement(D3DDECLUSAGE_POSITION, 2);
49544956
addInputElement(D3DDECLUSAGE_BINORMAL, 0);
4955-
addInputElement(D3DDECLUSAGE_POSITION, 3);
49564957
addInputElement(D3DDECLUSAGE_TEXCOORD, 0);
49574958
addInputElement(D3DDECLUSAGE_TEXCOORD, 1);
49584959
addInputElement(D3DDECLUSAGE_TEXCOORD, 2);

0 commit comments

Comments
 (0)