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:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r--source/blender/windowmanager/intern/wm_xr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index 19d05826341..bd9fd7cdc3e 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -516,9 +516,10 @@ static void wm_xr_session_surface_draw(bContext *C)
if (!GHOST_XrSessionIsRunning(wm->xr.runtime->context)) {
return;
}
+ DRW_xr_drawing_begin();
GHOST_XrSessionDrawViews(wm->xr.runtime->context, C);
-
GPU_offscreen_unbind(surface_data->offscreen, false);
+ DRW_xr_drawing_end();
}
static void wm_xr_session_free_data(wmSurface *surface)