diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-30 20:32:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-30 20:34:12 +0300 |
commit | 0b6603d9b61007080f66633c7dafe26b33e2ceb7 (patch) | |
tree | ad3adf58062a4d37a3bc99c1be97f725ce25fa5b /source/blender/gpu/intern/gpu_select_pick.c | |
parent | c86437cc83c595f68cde0bc05a9dac202645bbe8 (diff) |
Fix selection randomly failing with border render.
We no longer user scissor for 3D viewport drawing, and some selection
code assumed it still. This also cleans up unnecessary scissor test
switching, we only have it temporarily enabled now.
Diffstat (limited to 'source/blender/gpu/intern/gpu_select_pick.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_select_pick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c index 4aef80934ad..953f6daf805 100644 --- a/source/blender/gpu/intern/gpu_select_pick.c +++ b/source/blender/gpu/intern/gpu_select_pick.c @@ -337,7 +337,7 @@ void gpu_select_pick_begin( } float viewport[4]; - glGetFloatv(GL_SCISSOR_BOX, viewport); + glGetFloatv(GL_VIEWPORT, viewport); ps->src.clip_rect = *input; ps->src.rect_len = rect_len; |