Cleanup: use shorter name for shader config
[blender.git] / source / blender / draw / modes / paint_vertex_mode.c
index 16c0d3621f298e744d44cbf928ec3576ee77d454..ced0883b9b60209aad2c00f198c1eaa4b019e57b 100644 (file)
@@ -90,7 +90,7 @@ typedef struct PAINT_VERTEX_PrivateData {
 static void PAINT_VERTEX_engine_init(void *UNUSED(vedata))
 {
        const DRWContextState *draw_ctx = DRW_context_state_get();
-       PAINT_VERTEX_Shaders *sh_data = &e_data.sh_data[draw_ctx->shader_cfg];
+       PAINT_VERTEX_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) {
@@ -131,7 +131,7 @@ static void PAINT_VERTEX_cache_init(void *vedata)
        const DRWContextState *draw_ctx = DRW_context_state_get();
        const View3D *v3d = draw_ctx->v3d;
        const RegionView3D *rv3d = draw_ctx->rv3d;
-       PAINT_VERTEX_Shaders *sh_data = &e_data.sh_data[draw_ctx->shader_cfg];
+       PAINT_VERTEX_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg];
 
        if (!stl->g_data) {
                /* Alloc transient pointers */