diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-05 13:53:14 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-05 13:53:14 +0300 |
commit | be00a22c234fd2b7d81653c8ae870bc859f29618 (patch) | |
tree | f085c1f9233484d209753fb7e2313f9158b82430 /source/blender/editors/space_view3d | |
parent | 0db545554ab4375ae664f1586b390c58070faa62 (diff) |
Fix T56695: Selecting an occluded object in xray causes crash
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index c65c3f16d6d..68e9053101e 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -1027,6 +1027,9 @@ int view3d_opengl_select( drw_select_loop_pass, &drw_select_loop_user_data, object_filter.fn, object_filter.user_data); hits = drw_select_loop_user_data.hits; + /* FIX: This cleanup the state before doing another selection pass. + * (see T56695) */ + GPU_select_cache_end(); } if (hits == 0) { |