diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-04-15 23:30:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-04-15 23:30:55 +0300 |
commit | e0d7b6c78d4f2481b5ca2382a1dea61d1d96e856 (patch) | |
tree | 65b0eba6a5cbb74d7ea1c22b27bd82d43d0ab19c /source | |
parent | e08ac50a5ce384e62786bc3b67344414fd8d25aa (diff) |
Fix T75751 Overlay: Clipping Region crashes Blender
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_shader.c b/source/blender/draw/engines/overlay/overlay_shader.c index 2bb3555b8d1..607981cb0d0 100644 --- a/source/blender/draw/engines/overlay/overlay_shader.c +++ b/source/blender/draw/engines/overlay/overlay_shader.c @@ -233,10 +233,12 @@ GPUShader *OVERLAY_shader_background(void) GPUShader *OVERLAY_shader_clipbound(void) { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; + const GPUShaderConfigData *sh_cfg = &GPU_shader_cfg_data[0]; if (!sh_data->clipbound) { sh_data->clipbound = GPU_shader_create_from_arrays({ .vert = (const char *[]){datatoc_common_view_lib_glsl, datatoc_clipbound_vert_glsl, NULL}, .frag = (const char *[]){datatoc_gpu_shader_uniform_color_frag_glsl, NULL}, + .defs = (const char *[]){sh_cfg->def, NULL}, }); } return sh_data->clipbound; |