Slightly changed scene background behavior
Former-commit-id: c005ff83e6251d62e3471e6a7a07d3d1a8acdd88
This commit is contained in:
parent
5390bd49f0
commit
aecc5919d3
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue