From e36e8a21e04effe20af6e644ffa2cdb1f25ed616 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 16 Jan 2015 12:52:48 +0100 Subject: [PATCH] Fixed VertexLayout_XYZ_Color_UV declaration Former-commit-id: e9aa4604e88467c23dd889da943d9e00b75ae637 --- src/Nazara/Utility/VertexDeclaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Utility/VertexDeclaration.cpp b/src/Nazara/Utility/VertexDeclaration.cpp index 9cb0162de..e65814660 100644 --- a/src/Nazara/Utility/VertexDeclaration.cpp +++ b/src/Nazara/Utility/VertexDeclaration.cpp @@ -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));