Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-07-03 22:01:58 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-07-03 22:01:58 +0300
commit146ef0dd1e1430a3a6c3e3039475dde814c5a2c8 (patch)
tree3241040446046785e7e5615ad103b647ba34f475 /source/blender/windowmanager/intern/wm_xr.c
parent5891e86420d9718670841f0282bac499c225ccd8 (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.c2
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)