From 7c4e164ff3a0ab9fa9e1ece8f50f0f78aa08bdef Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 11 Apr 2017 12:47:38 +0200 Subject: [PATCH] Get rid of last deprecated OpenGL calls in arrow_manipulator.c Hope that makes sense... --- .../intern/manipulator_library/arrow_manipulator.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c index 8775b373748..3cb67259e03 100644 --- a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c +++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c @@ -169,15 +169,12 @@ static void arrow_draw_geom(const ArrowManipulator *arrow, const bool select, co gpuTranslate3f(0.0f, 0.0f, arrow->len); if (use_lighting) { - glShadeModel(GL_SMOOTH); + immUnbindProgram(); + immBindBuiltinProgram(GPU_SHADER_3D_SMOOTH_COLOR); } imm_draw_circle_fill_3d(pos, 0.0, 0.0, width, 8); imm_draw_cylinder_fill_3d(pos, width, 0.0, len, 8, 1); - - if (use_lighting) { - glShadeModel(GL_FLAT); - } } gpuPopMatrix();