diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-03-23 08:34:35 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-03-23 08:37:18 -0400 |
| commit | da2e34f69b29b4a57e66f325b67d95cd1b5b04d8 (patch) | |
| tree | c46ee2a7e693fa5f7d035aefe33b6c004ffc4fad /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | 6a17d87b07dda4b31b76733e6c9dfb72c70444a7 (diff) | |
VertexLoaderBase: In-class initialize class members where applicable
Same thing, less code.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index 0975b2c172..ce637401ac 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -24,16 +24,9 @@ #endif VertexLoaderBase::VertexLoaderBase(const TVtxDesc& vtx_desc, const VAT& vtx_attr) + : m_VtxDesc{vtx_desc}, m_vat{vtx_attr} { - m_numLoadedVertices = 0; - m_VertexSize = 0; - m_native_vertex_format = nullptr; - m_native_components = 0; - memset(&m_native_vtx_decl, 0, sizeof(m_native_vtx_decl)); - SetVAT(vtx_attr); - m_VtxDesc = vtx_desc; - m_vat = vtx_attr; } void VertexLoaderBase::SetVAT(const VAT& vat) |
