Added a Library to most reference-counted classes
Former-commit-id: 3ed409a71dcd5ce4eec7672ac26f8fff00e3b136
This commit is contained in:
@@ -179,6 +179,12 @@ bool NzVertexDeclaration::IsTypeSupported(nzComponentType type)
|
||||
|
||||
bool NzVertexDeclaration::Initialize()
|
||||
{
|
||||
if (!NzVertexDeclarationLibrary::Initialize())
|
||||
{
|
||||
NazaraError("Failed to initialise library");
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
NzErrorFlags flags(nzErrorFlag_Silent | nzErrorFlag_ThrowException);
|
||||
@@ -290,7 +296,8 @@ bool NzVertexDeclaration::Initialize()
|
||||
|
||||
void NzVertexDeclaration::Uninitialize()
|
||||
{
|
||||
// Rien à faire
|
||||
NzVertexDeclarationLibrary::Uninitialize();
|
||||
}
|
||||
|
||||
NzVertexDeclaration NzVertexDeclaration::s_declarations[nzVertexLayout_Max+1];
|
||||
NzVertexDeclarationLibrary::LibraryMap NzVertexDeclaration::s_library;
|
||||
|
||||
Reference in New Issue
Block a user