diff options
| author | Vito Caputo <vcaputo@pengaru.com> | 2019-09-05 17:38:36 -0700 |
|---|---|---|
| committer | Vito Caputo <vcaputo@pengaru.com> | 2019-09-05 17:38:36 -0700 |
| commit | a62cecf9bb1acad6acd2cdf6b3265272cbf87538 (patch) | |
| tree | 289d78ac71e962fa694c37e24a3f92fa25f3e971 | |
| parent | 8b4bcb68cf8a3921e623a5d7d908db3053272fb6 (diff) | |
libstage: don't prepare at root if inactive
| -rw-r--r-- | src/stage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stage.c b/src/stage.c index 3927120..bffd67f 100644 --- a/src/stage.c +++ b/src/stage.c @@ -319,7 +319,8 @@ int stage_render(stage_t *stage, void *render_ctxt) /* we must always enter the prepare pass, as some nodes may dirty the stage * in the prepare stage. */ - _prepare_stage(stage, 1.f, render_ctxt); + if (stage->active) + _prepare_stage(stage, 1.f, render_ctxt); if (stage->dirty) { if (stage->active) |
