summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-09-05 17:38:36 -0700
committerVito Caputo <vcaputo@pengaru.com>2019-09-05 17:38:36 -0700
commita62cecf9bb1acad6acd2cdf6b3265272cbf87538 (patch)
tree289d78ac71e962fa694c37e24a3f92fa25f3e971
parent8b4bcb68cf8a3921e623a5d7d908db3053272fb6 (diff)
libstage: don't prepare at root if inactive
-rw-r--r--src/stage.c3
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)
© 2020 All Rights Reserved