From 494a60e41b2bd5bde4ffc664e446033132478295 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 1 Sep 2014 11:00:25 +0200 Subject: VertexLoader: Change VtxDesc to use u64 instead of u32 This is required to make packing consistent between compilers: with u32, MSVC would not allocate a bitfield that spans two u32s (it would leave a "hole"). --- Source/Core/VideoCommon/VertexLoader_Normal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp') diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index 7eb900db3a..60140e534f 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -182,13 +182,13 @@ void VertexLoader_Normal::Init() m_Table[NRM_INDEX16][NRM_INDICES3][NRM_NBT3][FORMAT_FLOAT] = Normal_Index_Indices3(); } -unsigned int VertexLoader_Normal::GetSize(unsigned int _type, +unsigned int VertexLoader_Normal::GetSize(u64 _type, unsigned int _format, unsigned int _elements, unsigned int _index3) { return m_Table[_type][_index3][_elements][_format].gc_size; } -TPipelineFunction VertexLoader_Normal::GetFunction(unsigned int _type, +TPipelineFunction VertexLoader_Normal::GetFunction(u64 _type, unsigned int _format, unsigned int _elements, unsigned int _index3) { TPipelineFunction pFunc = m_Table[_type][_index3][_elements][_format].function; -- cgit v1.2.3