diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-23 08:45:46 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-23 08:46:14 +0300 |
commit | 09ad6842499f638ecd944714c0a82ba8deebb073 (patch) | |
tree | f3f3f3be2571d530497850b9196e0c23ff3e8093 /source/blender/editors/armature/editarmature_sketch.c | |
parent | c2366009c06ad7bdda29d182f8f3b4550cc0e123 (diff) |
cleanup use of GPU matrix API
Take advantage of 2D functions, rotation about the X Y or Z axis, uniform scale factors.
We no longer need to call gpuMatrixBegin_legacy() before using the new API locally in functions.
related to T49450
Diffstat (limited to 'source/blender/editors/armature/editarmature_sketch.c')
-rw-r--r-- | source/blender/editors/armature/editarmature_sketch.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c index feabac9d88f..f42ce147431 100644 --- a/source/blender/editors/armature/editarmature_sketch.c +++ b/source/blender/editors/armature/editarmature_sketch.c @@ -1988,8 +1988,6 @@ static void sk_drawSketch(Scene *scene, View3D *UNUSED(v3d), SK_Sketch *sketch, glClear(GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST); - gpuMatrixBegin3D_legacy(); - if (with_names) { int id; for (id = 1, stk = sketch->strokes.first; stk; id++, stk = stk->next) { @@ -2058,8 +2056,6 @@ static void sk_drawSketch(Scene *scene, View3D *UNUSED(v3d), SK_Sketch *sketch, float gesture_rgb[3] = { 0, 0.5, 1 }; sk_drawStroke(sketch->gesture, -1, gesture_rgb, -1, -1); } - - gpuMatrixEnd(); } static int sk_finish_stroke(bContext *C, SK_Sketch *sketch) |