Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-16 13:31:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-16 13:32:42 +0300
commit90aa02290ac87a08cef948efb3ee67335276468a (patch)
treec5d28fa1ebc8cb984980ae344128c15635e61360 /source/blender/editors/curve/editcurve_paint.c
parent6bca0dcf7bd6c071f0b03234ac448d5e8e15fdc5 (diff)
Cleanup: rename GPU gawain functions
Were using Batch_ prefix still
Diffstat (limited to 'source/blender/editors/curve/editcurve_paint.c')
-rw-r--r--source/blender/editors/curve/editcurve_paint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c
index ef708a4edec..f6bbff2f5d4 100644
--- a/source/blender/editors/curve/editcurve_paint.c
+++ b/source/blender/editors/curve/editcurve_paint.c
@@ -383,8 +383,8 @@ static void curve_draw_stroke_3d(const struct bContext *UNUSED(C), ARegion *UNUS
float color[3];
UI_GetThemeColor3fv(TH_WIRE, color);
- Gwn_Batch *sphere = Batch_get_sphere(0);
- Batch_set_builtin_program(sphere, GPU_SHADER_3D_UNIFORM_COLOR);
+ Gwn_Batch *sphere = GPU_batch_preset_sphere(0);
+ GWN_batch_program_set_builtin(sphere, GPU_SHADER_3D_UNIFORM_COLOR);
GWN_batch_uniform_3fv(sphere, "color", color);
/* scale to edit-mode space */