Allow camera render target to be null
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user