diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-07-03 22:01:58 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-07-03 22:01:58 +0300 |
commit | 146ef0dd1e1430a3a6c3e3039475dde814c5a2c8 (patch) | |
tree | 3241040446046785e7e5615ad103b647ba34f475 /source/blender/windowmanager/intern/wm_xr.c | |
parent | 5891e86420d9718670841f0282bac499c225ccd8 (diff) |
Properly end VR sessions fixing crash on next session start
Previously, you had to restart Blender to start another session.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index ccd8a94464c..369272a60bf 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -263,6 +263,8 @@ static void wm_xr_session_gpu_binding_context_destroy( wm_surface_remove(g_xr_surface); } #endif + + wm_window_reset_drawable(); } void wm_xr_session_toggle(struct GHOST_XrContext *xr_context) |