summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2021-05-30 17:10:20 +0100
committerTillmann Karras <tilkax@gmail.com>2021-05-30 17:10:20 +0100
commitfaec77a9714b31e0c3864890bc44c4bf31e06a66 (patch)
treea2c001fdb53073fae21ab7705f841e95e9a081e3 /Source/Core/VideoCommon
parentb3a414ea9df1c30d4d0cc59cfbefc9eacda9c62a (diff)
Fix -Wreorder warnings
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/TextureInfo.cpp6
-rw-r--r--Source/Core/VideoCommon/VertexLoaderBase.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureInfo.cpp b/Source/Core/VideoCommon/TextureInfo.cpp
index 33c1e43cda..09c5dee375 100644
--- a/Source/Core/VideoCommon/TextureInfo.cpp
+++ b/Source/Core/VideoCommon/TextureInfo.cpp
@@ -54,9 +54,9 @@ TextureInfo::TextureInfo(const u8* ptr, const u8* tlut_ptr, u32 address,
TextureFormat texture_format, TLUTFormat tlut_format, u32 width,
u32 height, bool from_tmem, const u8* tmem_odd, const u8* tmem_even,
std::optional<u32> mip_count)
- : m_ptr(ptr), m_tlut_ptr(tlut_ptr), m_address(address), m_texture_format(texture_format),
- m_tlut_format(tlut_format), m_raw_width(width), m_raw_height(height), m_from_tmem(from_tmem),
- m_tmem_odd(tmem_odd)
+ : m_ptr(ptr), m_tlut_ptr(tlut_ptr), m_address(address), m_from_tmem(from_tmem),
+ m_tmem_odd(tmem_odd), m_texture_format(texture_format), m_tlut_format(tlut_format),
+ m_raw_width(width), m_raw_height(height)
{
const bool is_palette_texture = IsColorIndexed(m_texture_format);
if (is_palette_texture)
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.h b/Source/Core/VideoCommon/VertexLoaderBase.h
index 3dc03b5ce5..9b030e1f2b 100644
--- a/Source/Core/VideoCommon/VertexLoaderBase.h
+++ b/Source/Core/VideoCommon/VertexLoaderBase.h
@@ -80,8 +80,9 @@ public:
protected:
VertexLoaderBase(const TVtxDesc& vtx_desc, const VAT& vtx_attr)
- : m_VtxDesc{vtx_desc}, m_VtxAttr{vtx_attr}, m_vertex_size{GetVertexSize(vtx_desc, vtx_attr)},
- m_native_components{GetVertexComponents(vtx_desc, vtx_attr)}
+ : m_vertex_size{GetVertexSize(vtx_desc, vtx_attr)}, m_native_components{GetVertexComponents(
+ vtx_desc, vtx_attr)},
+ m_VtxAttr{vtx_attr}, m_VtxDesc{vtx_desc}
{
}