X::Initialize no longer takes arguments

Former-commit-id: a8233235e89112630f2d31c637723443bd0829a4
This commit is contained in:
Lynix
2013-04-03 16:41:57 +02:00
parent d8c5f4a0fd
commit 8694f71c2a
8 changed files with 47 additions and 51 deletions

View File

@@ -616,15 +616,10 @@ bool NzRenderer::HasCapability(nzRendererCap capability)
return s_capabilities[capability];
}
bool NzRenderer::Initialize(bool initializeDebugDrawer)
bool NzRenderer::Initialize()
{
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())
@@ -761,9 +756,6 @@ bool NzRenderer::Initialize(bool initializeDebugDrawer)
s_quadBuffer = new NzVertexBuffer(declaration.get(), 4, nzBufferStorage_Hardware, nzBufferUsage_Dynamic);
declaration.release();
if (initializeDebugDrawer && !NzDebugDrawer::Initialize())
NazaraWarning("Failed to initialize debug drawer"); // Non-critique
if (!NzShaderBuilder::Initialize())
{
NazaraError("Failed to initialize shader builder");