Changed module initialisation behavior
Former-commit-id: f3901c7785ab89b113afd961d7a51b609db2e314
This commit is contained in:
@@ -364,7 +364,12 @@ bool NzRenderer::HasCapability(nzRendererCap capability)
|
||||
bool NzRenderer::Initialize(bool initializeDebugDrawer)
|
||||
{
|
||||
if (s_moduleReferenceCounter++ != 0)
|
||||
{
|
||||
if (initializeDebugDrawer && !NzDebugDrawer::Initialize())
|
||||
NazaraWarning("Failed to initialize debug drawer"); // Non-critique
|
||||
|
||||
return true; // Déjà initialisé
|
||||
}
|
||||
|
||||
// Initialisation des dépendances
|
||||
if (!NzUtility::Initialize())
|
||||
|
||||
Reference in New Issue
Block a user