Fix error in last commit
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Jan 2019 00:24:27 +0000 (11:24 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Jan 2019 00:24:59 +0000 (11:24 +1100)
source/blender/draw/modes/edit_mesh_mode.c

index 1de0080..c31cd62 100644 (file)
@@ -250,7 +250,7 @@ static GPUShader *EDIT_MESH_ensure_shader(
                        char *defines = EDIT_MESH_sh_defines(tsettings, rv3d, true, false);
                        sh_data->overlay_tri_cache[index] = DRW_shader_create_from_arrays({
                                .vert = (const char *[]){lib, datatoc_edit_mesh_overlay_vert_glsl, NULL},
-                               .geom = (const char *[]){lib, fast_mode ? NULL : datatoc_edit_mesh_overlay_geom_tri_glsl, NULL},
+                               .geom = fast_mode ? NULL : (const char *[]){lib, datatoc_edit_mesh_overlay_geom_tri_glsl, NULL},
                                .frag = (const char *[]){lib, datatoc_edit_mesh_overlay_frag_glsl, NULL},
                                .defs = (const char *[]){world_clip_def_or_empty, defines, NULL},
                        });