From 98246d0eeee4cca1455609f8317c21a34d423b73 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 7 Aug 2013 01:11:06 +0200 Subject: [PATCH] Added some missings warnings Former-commit-id: e1e754d3c48b156f82450829fa2c8eb9af9ab96f --- src/Nazara/Graphics/Scene.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Nazara/Graphics/Scene.cpp b/src/Nazara/Graphics/Scene.cpp index 04d61adc7..4000f8d06 100644 --- a/src/Nazara/Graphics/Scene.cpp +++ b/src/Nazara/Graphics/Scene.cpp @@ -63,6 +63,14 @@ void NzScene::AddToVisibilityList(NzUpdatable* object) void NzScene::Cull() { + #if NAZARA_GRAPHICS_SAFE + if (!m_impl->activeCamera) + { + NazaraError("No active camera"); + return; + } + #endif + NzAbstractRenderQueue* renderQueue = m_impl->renderTechnique->GetRenderQueue(); renderQueue->Clear(false); @@ -78,6 +86,14 @@ void NzScene::Cull() void NzScene::Draw() { + #if NAZARA_GRAPHICS_SAFE + if (!m_impl->activeCamera) + { + NazaraError("No active camera"); + return; + } + #endif + m_impl->renderTechnique->Clear(this); m_impl->renderTechnique->Draw(this); }