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/space_view3d/view3d_draw.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/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 0aad272eaa4..33448a577a8 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -812,7 +812,7 @@ static bool view3d_draw_render_draw(const bContext *C, Scene *scene, static void view3d_draw_background_gradient(void) { - gpuMatrixBegin3D(); /* TODO: finish 2D API */ + /* TODO: finish 2D API & draw background with that */ glClear(GL_DEPTH_BUFFER_BIT); @@ -837,8 +837,6 @@ static void view3d_draw_background_gradient(void) immEnd(); immUnbindProgram(); - - gpuMatrixEnd(); } static void view3d_draw_background_none(void) |