From: Mikko Rasa Date: Mon, 4 Nov 2019 01:56:05 +0000 (+0200) Subject: Check for null camera in View::render X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=80a0f481687ea17cc9a3b6557b480adf5802ca4a;p=libs%2Fgl.git Check for null camera in View::render --- diff --git a/source/view.cpp b/source/view.cpp index 8c77054f..19d583ae 100644 --- a/source/view.cpp +++ b/source/view.cpp @@ -44,7 +44,8 @@ void View::render(Renderer &renderer) if(content) { Renderer::Push push(renderer); - renderer.set_camera(*camera); + if(camera) + renderer.set_camera(*camera); content->setup_frame(renderer); content->render(renderer); content->finish_frame();