NativeVertexFormat: Use in-class initialization

This commit is contained in:
Lioncash
2016-02-15 23:11:43 -05:00
parent 2c5fcad5f5
commit 69c82f32ff
3 changed files with 16 additions and 15 deletions

View File

@ -44,8 +44,7 @@ DXGI_FORMAT VarToD3D(VarType t, int size, bool integer)
return retval;
}
D3DVertexFormat::D3DVertexFormat(const PortableVertexDeclaration &vtx_decl)
: m_num_elems(0), m_layout12({}), m_elems()
D3DVertexFormat::D3DVertexFormat(const PortableVertexDeclaration& vtx_decl)
{
this->vtx_decl = vtx_decl;