diff options
Diffstat (limited to 'source/blender/draw/modes/overlay_mode.c')
-rw-r--r-- | source/blender/draw/modes/overlay_mode.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/draw/modes/overlay_mode.c b/source/blender/draw/modes/overlay_mode.c index dc8ea53be2a..89eb3d47be1 100644 --- a/source/blender/draw/modes/overlay_mode.c +++ b/source/blender/draw/modes/overlay_mode.c @@ -119,7 +119,8 @@ static void overlay_engine_init(void *vedata) sh_data->face_orientation = DRW_shader_create_from_arrays({ .vert = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_orientation_vert_glsl, NULL}, .frag = (const char *[]){datatoc_overlay_face_orientation_frag_glsl, NULL}, - .defs = (const char *[]){world_clip_def_or_empty, NULL}}); + .defs = (const char *[]){world_clip_def_or_empty, NULL}, + }); } if (!sh_data->face_wireframe) { @@ -127,18 +128,19 @@ static void overlay_engine_init(void *vedata) .vert = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_wireframe_vert_glsl, NULL}, .geom = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_wireframe_geom_glsl, NULL}, .frag = (const char *[]){datatoc_gpu_shader_depth_only_frag_glsl, NULL}, - .defs = (const char *[]){world_clip_def_or_empty, "#define SELECT_EDGES\n", NULL}}); - + .defs = (const char *[]){world_clip_def_or_empty, "#define SELECT_EDGES\n", NULL}, + }); sh_data->face_wireframe = DRW_shader_create_from_arrays({ .vert = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_wireframe_vert_glsl, NULL}, .frag = (const char *[]){datatoc_overlay_face_wireframe_frag_glsl, NULL}, - .defs = (const char *[]){world_clip_def_or_empty, NULL}}); - + .defs = (const char *[]){world_clip_def_or_empty, NULL}, + }); sh_data->face_wireframe_sculpt = DRW_shader_create_from_arrays({ .vert = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_wireframe_vert_glsl, NULL}, .geom = (const char *[]){world_clip_lib_or_empty, datatoc_overlay_face_wireframe_geom_glsl, NULL}, .frag = (const char *[]){datatoc_overlay_face_wireframe_frag_glsl, NULL}, - .defs = (const char *[]){world_clip_def_or_empty, "#define USE_SCULPT\n", NULL}}); + .defs = (const char *[]){world_clip_def_or_empty, "#define USE_SCULPT\n", NULL}, + }); } } |