summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-24 15:41:08 +0100
committerdegasus <wickmarkus@web.de>2014-01-31 07:19:34 +0100
commita65162f1cd345b8f206fd01e19ac261d09ac291b (patch)
tree4f90d9cb21c73d88715653d16afcc62090257460 /Source/Core/VideoCommon/VertexLoader.cpp
parent6c59b691b0247f4a56ff17d7cf134364b258a6c5 (diff)
PortableVertexFormat: use AttributeFormat for posmtx attribute format
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp
index 3e3a020eb4..99e5541c0d 100644
--- a/Source/Core/VideoCommon/VertexLoader.cpp
+++ b/Source/Core/VideoCommon/VertexLoader.cpp
@@ -756,13 +756,13 @@ void VertexLoader::CompileVertexTranslator()
if (m_VtxDesc.PosMatIdx)
{
WriteCall(PosMtx_Write);
- vtx_decl.posmtx_offset = nat_offset;
+ vtx_decl.posmtx.components = 4;
+ vtx_decl.posmtx.enable = true;
+ vtx_decl.posmtx.offset = nat_offset;
+ vtx_decl.posmtx.type = VAR_UNSIGNED_BYTE;
+ vtx_decl.posmtx.integer = false;
nat_offset += 4;
}
- else
- {
- vtx_decl.posmtx_offset = -1;
- }
native_stride = nat_offset;
vtx_decl.stride = native_stride;