[Bf-blender-cvs] [7c4e164ff3a] blender2.8: Get rid of last deprecated OpenGL calls in arrow_manipulator.c
Bastien Montagne
noreply at git.blender.org
Tue Apr 11 13:01:13 CEST 2017
Commit: 7c4e164ff3a0ab9fa9e1ece8f50f0f78aa08bdef
Author: Bastien Montagne
Date: Tue Apr 11 12:47:38 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB7c4e164ff3a0ab9fa9e1ece8f50f0f78aa08bdef
Get rid of last deprecated OpenGL calls in arrow_manipulator.c
Hope that makes sense...
===================================================================
M source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
===================================================================
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();
More information about the Bf-blender-cvs
mailing list