Slightly changed scene background behavior

Former-commit-id: c005ff83e6251d62e3471e6a7a07d3d1a8acdd88
This commit is contained in:
Lynix 2013-03-22 11:14:55 +01:00
parent 5390bd49f0
commit aecc5919d3
1 changed files with 1 additions and 5 deletions

View File

@ -66,12 +66,11 @@ struct NzSceneImpl
NzScene::NzScene()
{
m_impl = new NzSceneImpl(this);
m_impl->background.reset(new NzColorBackground);
m_impl->skinningBuffer = new NzVertexBuffer(NzMesh::GetDeclaration(), 20000, nzBufferStorage_Hardware, nzBufferUsage_Dynamic);
if (NzRenderer::HasCapability(nzRendererCap_Instancing))
m_impl->instancingData.resize(NAZARA_RENDERER_INSTANCING_MAX);
SetBackground(nullptr);
}
NzScene::~NzScene()
@ -363,9 +362,6 @@ void NzScene::SetAmbientColor(const NzColor& color)
void NzScene::SetBackground(NzBackground* background)
{
if (!background)
background = new NzColorBackground;
m_impl->background.reset(background);
}