Allow camera render target to be null

This commit is contained in:
2023-05-10 07:43:02 -07:00
parent fb53330105
commit d643d5f220
5 changed files with 17 additions and 9 deletions

View File

@ -60,7 +60,10 @@ void RenderPipeline::renderScene(Scene *scene) {
// Leave the backbuffer camera(s) to last, so we skip them. we do this so
// that children framebuffers contain the CURRENT frame, not LAST frame.
if(cameraTarget == backBuffer) {
if(cameraTarget == nullptr) {
++it;
continue;
} else if(cameraTarget == backBuffer) {
backBufferCamera = *it;
} else {
this->renderSceneCamera(scene, *it);