summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-10-12 00:41:25 +0200
committerflacs <tilkax@gmail.com>2015-10-12 00:41:25 +0200
commitc8382cca83332bc1ef993acb225a88b8cf6a1b7d (patch)
tree56df8441f938165752dedc40e4b0eb94df67b5c6 /Source/Core/VideoCommon/VertexLoader.cpp
parentba20f114eb1d93e6c2500c9f3ef61832e2ec9b13 (diff)
parent9f8981c7c0db15a2813991ae9b323139dbbc4f46 (diff)
Merge pull request #3167 from Tilka/wrapper
VertexLoaderUtils: remove simple wrapper functions
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp
index 5673d1aa90..d186ad9cde 100644
--- a/Source/Core/VideoCommon/VertexLoader.cpp
+++ b/Source/Core/VideoCommon/VertexLoader.cpp
@@ -25,7 +25,7 @@ u8* g_vertex_manager_write_ptr;
static void PosMtx_ReadDirect_UByte(VertexLoader* loader)
{
- u32 posmtx = DataReadU8() & 0x3f;
+ u32 posmtx = DataRead<u8>() & 0x3f;
if (loader->m_counter < 3)
VertexLoaderManager::position_matrix_index[loader->m_counter] = posmtx;
DataWrite<u32>(posmtx);
@@ -34,7 +34,7 @@ static void PosMtx_ReadDirect_UByte(VertexLoader* loader)
static void TexMtx_ReadDirect_UByte(VertexLoader* loader)
{
- loader->m_curtexmtx[loader->m_texmtxread] = DataReadU8() & 0x3f;
+ loader->m_curtexmtx[loader->m_texmtxread] = DataRead<u8>() & 0x3f;
PRIM_LOG("texmtx%d: %d, ", loader->m_texmtxread, loader->m_curtexmtx[loader->m_texmtxread]);
loader->m_texmtxread++;