diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-11-28 17:34:23 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-11-28 17:35:33 +0300 |
commit | 47bb3c5d5d0d8f1a2eb27211eba863d065516e0a (patch) | |
tree | 97858a73abd92563e1aea74d87d2821f570f468e /source/blender/draw/engines/eevee | |
parent | 70a32adfeb41f9b3fc376a933fbdc2d11bb73c15 (diff) |
EEVEE: RenderLayers
Small change do not draw an unsupported renderpass in the viewport
Diffstat (limited to 'source/blender/draw/engines/eevee')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_renderpasses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_renderpasses.c b/source/blender/draw/engines/eevee/eevee_renderpasses.c index b83216ee6d0..9b7bd34c9fa 100644 --- a/source/blender/draw/engines/eevee/eevee_renderpasses.c +++ b/source/blender/draw/engines/eevee/eevee_renderpasses.c @@ -236,7 +236,7 @@ void EEVEE_renderpasses_draw(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) const DRWContextState *draw_ctx = DRW_context_state_get(); const Scene *scene_eval = DEG_get_evaluated_scene(draw_ctx->depsgraph); - bool is_valid = true; + bool is_valid = (render_pass & EEVEE_RENDERPASSES_SUPPORTED) > 0; bool needs_color_transfer = (render_pass & EEVEE_RENDERPASSES_COLOR_PASS) > 0 && DRW_state_is_opengl_render(); |