Fixed VertexDeclaration copy constructor

Former-commit-id: 54bd378364c987c975ca2e83187b3559f4b9d92c
This commit is contained in:
Lynix 2014-07-11 10:23:55 +02:00
parent ca54b6cdca
commit 27aea8ae2a
2 changed files with 2 additions and 4 deletions

View File

@ -17,15 +17,13 @@ class NzVertexDeclaration;
using NzVertexDeclarationConstRef = NzResourceRef<const NzVertexDeclaration>;
using NzVertexDeclarationRef = NzResourceRef<NzVertexDeclaration>;
struct NzVertexDeclarationImpl;
class NAZARA_API NzVertexDeclaration : public NzResource
{
friend class NzUtility;
public:
NzVertexDeclaration();
NzVertexDeclaration(NzVertexDeclaration& declaration);
NzVertexDeclaration(const NzVertexDeclaration& declaration);
~NzVertexDeclaration();
void DisableComponent(nzVertexComponent component);

View File

@ -18,7 +18,7 @@ m_stride(0)
{
}
NzVertexDeclaration::NzVertexDeclaration(NzVertexDeclaration& declaration) :
NzVertexDeclaration::NzVertexDeclaration(const NzVertexDeclaration& declaration) :
NzResource(),
m_stride(declaration.m_stride)
{