Get rid of last deprecated OpenGL calls in arrow_manipulator.c

Hope that makes sense...
This commit is contained in:
Bastien Montagne 2017-04-11 12:47:38 +02:00
parent 633a2a3592
commit 7c4e164ff3
1 changed files with 2 additions and 5 deletions

View File

@ -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();