Fixed error messages

Fixed Quaternion type not handled by VertexDeclaration::IsTypeSupported


Former-commit-id: 4668810c2acbee3127ba52aed9782255ef92013e
This commit is contained in:
Lynix 2014-07-13 09:42:21 +02:00
parent 7a6195991c
commit 3714371403
2 changed files with 5 additions and 2 deletions

View File

@ -46,7 +46,7 @@ bool NzGraphics::Initialize()
if (!NzSkinningManager::Initialize())
{
NazaraError("Failed to initialize skinning cache");
NazaraError("Failed to initialize skinning manager");
return false;
}

View File

@ -168,6 +168,9 @@ bool NzVertexDeclaration::IsTypeSupported(nzComponentType type)
case nzComponentType_Int3:
case nzComponentType_Int4:
return true;
case nzComponentType_Quaternion:
return false;
}
NazaraError("Component type not handled (0x" + NzString::Number(type, 16) + ')');
@ -187,7 +190,7 @@ bool NzVertexDeclaration::Initialize()
declaration = &s_declarations[nzVertexLayout_XY];
declaration->EnableComponent(nzVertexComponent_Position, nzComponentType_Float2, NzOffsetOf(NzVertexStruct_XY, position));
NazaraAssert(declaration->GetStride() == sizeof(NzVertexStruct_XY), "Invalid stride for declaration NzVertexStruct_XY");
NazaraAssert(declaration->GetStride() == sizeof(NzVertexStruct_XY), "Invalid stride for declaration nzVertexLayout_XY");
// nzVertexLayout_XY_UV : NzVertexStruct_XY_UV
declaration = &s_declarations[nzVertexLayout_XY_UV];