diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-10 03:02:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-10 03:02:06 +0300 |
commit | 16d7967c2b404cbe6719192e073c7685376f6ab1 (patch) | |
tree | 67cce46fa7b7fafccf7a7ddc9ed450f0afd18e2e /source/blender/draw/modes/edit_curve_mode.c | |
parent | 66c23ea2b4a4eb66490a8b9b6c57ed60ec934a42 (diff) |
Cleanup: use shorter name for shader config
The struct name is descriptive,
this isn't going to be confused with other variables.
Diffstat (limited to 'source/blender/draw/modes/edit_curve_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_curve_mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c index 4adf31b9b25..0a2a8ede1d9 100644 --- a/source/blender/draw/modes/edit_curve_mode.c +++ b/source/blender/draw/modes/edit_curve_mode.c @@ -107,7 +107,7 @@ typedef struct EDIT_CURVE_PrivateData { static void EDIT_CURVE_engine_init(void *UNUSED(vedata)) { const DRWContextState *draw_ctx = DRW_context_state_get(); - EDIT_CURVE_Shaders *sh_data = &e_data.sh_data[draw_ctx->shader_cfg]; + EDIT_CURVE_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; const bool is_clip = (draw_ctx->rv3d->rflag & RV3D_CLIPPING) != 0; if (is_clip) { @@ -119,7 +119,7 @@ static void EDIT_CURVE_engine_init(void *UNUSED(vedata)) if (!sh_data->wire_sh) { sh_data->wire_sh = GPU_shader_get_builtin_shader_with_config( - GPU_SHADER_3D_UNIFORM_COLOR, draw_ctx->shader_cfg); + GPU_SHADER_3D_UNIFORM_COLOR, draw_ctx->sh_cfg); } if (!sh_data->wire_normals_sh) { @@ -158,7 +158,7 @@ static void EDIT_CURVE_cache_init(void *vedata) const DRWContextState *draw_ctx = DRW_context_state_get(); View3D *v3d = draw_ctx->v3d; const RegionView3D *rv3d = draw_ctx->rv3d; - EDIT_CURVE_Shaders *sh_data = &e_data.sh_data[draw_ctx->shader_cfg]; + EDIT_CURVE_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; if (!stl->g_data) { /* Alloc transient pointers */ |