]> git.tdb.fi Git - libs/gl.git/commitdiff
Check for null camera in View::render
authorMikko Rasa <tdb@tdb.fi>
Mon, 4 Nov 2019 01:56:05 +0000 (03:56 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 4 Nov 2019 01:56:12 +0000 (03:56 +0200)
source/view.cpp

index 8c77054f976b5f77cca21c42bcf0fa3126a8112c..19d583ae19b04d1c2eb0f8348b9469255b15d5cf 100644 (file)
@@ -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();