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:
authorClément Foucault <foucault.clem@gmail.com>2017-02-14 02:49:16 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-02-14 02:49:16 +0300
commit10892944399ebca856163cc8c805c0de3c598614 (patch)
tree40a82f0f02e4f4a831757fec1d350b2fc2dca79d /source/blender/editors/curve
parent7fc632a8564000731779bb66c7ddd6066b6511cd (diff)
OpenGL immediate mode: Remove unecessary light shader
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/editcurve_paint.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c
index 01d9167cdb7..7b93e00b86d 100644
--- a/source/blender/editors/curve/editcurve_paint.c
+++ b/source/blender/editors/curve/editcurve_paint.c
@@ -479,13 +479,9 @@ static void curve_draw_stroke_3d(const struct bContext *UNUSED(C), ARegion *UNUS
float color[3];
UI_GetThemeColor3fv(TH_WIRE, color);
- /* silly light-less shader, non-critical task, so it's fine */
- float light[3] = {0.0f, 0.0f, 0.0f};
-
Batch *sphere = Batch_get_sphere(0);
- Batch_set_builtin_program(sphere, GPU_SHADER_SIMPLE_LIGHTING);
+ Batch_set_builtin_program(sphere, GPU_SHADER_3D_UNIFORM_COLOR);
Batch_Uniform3fv(sphere, "color", color);
- Batch_Uniform3fv(sphere, "light", light);
/* scale to edit-mode space */
gpuMatrixBegin3D_legacy();