diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 03:18:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 03:25:46 +0300 |
commit | 48fbf0baea88b6c9e1d41f5baafb6da1eb636a27 (patch) | |
tree | 1aed4e778ce107f2893a7f45f6fad8f110a36797 /source/blender/draw/engines | |
parent | 085a3662dd60fb1aa7efaa0bc368c7a54ab3a275 (diff) |
DRW: Add preprocessor error if including common_view_lib.glsl without draw_view
This avoid making include mistake and potentially detect areas that do
not really need common_view_lib.glsl.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/workbench/shaders/infos/workbench_composite_info.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/shaders/infos/workbench_composite_info.hh b/source/blender/draw/engines/workbench/shaders/infos/workbench_composite_info.hh index f577ae197b4..e93f241ad3c 100644 --- a/source/blender/draw/engines/workbench/shaders/infos/workbench_composite_info.hh +++ b/source/blender/draw/engines/workbench/shaders/infos/workbench_composite_info.hh @@ -13,7 +13,7 @@ GPU_SHADER_CREATE_INFO(workbench_composite) .fragment_out(0, Type::VEC4, "fragColor") .typedef_source("workbench_shader_shared.h") .fragment_source("workbench_composite_frag.glsl") - .additional_info("draw_fullscreen"); + .additional_info("draw_fullscreen", "draw_view"); /** \} */ |