Fixed VertexLayout_XYZ_Color_UV declaration

Former-commit-id: e9aa4604e88467c23dd889da943d9e00b75ae637
This commit is contained in:
Lynix 2015-01-16 12:52:48 +01:00
parent b5dbe6f03f
commit e36e8a21e0
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ bool NzVertexDeclaration::Initialize()
NazaraAssert(declaration->GetStride() == sizeof(NzVertexStruct_XYZ), "Invalid stride for declaration nzVertexLayout_XYZ");
// nzVertexLayout_XYZ_Color : NzVertexStruct_XYZ_Color
declaration = &s_declarations[nzVertexLayout_XYZ_Color_UV];
declaration = &s_declarations[nzVertexLayout_XYZ_Color];
declaration->EnableComponent(nzVertexComponent_Position, nzComponentType_Float3, NzOffsetOf(NzVertexStruct_XYZ_Color, position));
declaration->EnableComponent(nzVertexComponent_Color, nzComponentType_Color, NzOffsetOf(NzVertexStruct_XYZ_Color, color));