[Bf-blender-cvs] [1089294439] blender2.8: OpenGL immediate mode: Remove unecessary light shader
Clément Foucault
noreply at git.blender.org
Tue Feb 14 00:54:06 CET 2017
Commit: 10892944399ebca856163cc8c805c0de3c598614
Author: Clément Foucault
Date: Tue Feb 14 00:49:16 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB10892944399ebca856163cc8c805c0de3c598614
OpenGL immediate mode: Remove unecessary light shader
===================================================================
M source/blender/editors/curve/editcurve_paint.c
===================================================================
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c
index 01d9167cdb..7b93e00b86 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();
More information about the Bf-blender-cvs
mailing list