[Bf-blender-cvs] [3e0acdfe94a] xr-actions-D9124: Fix build error when disabling WITH_XR_OPENXR
Peter Kim
noreply at git.blender.org
Mon Oct 26 18:17:53 CET 2020
Commit: 3e0acdfe94ad667ef5bd142ae0c84532e5b31823
Author: Peter Kim
Date: Tue Oct 27 01:30:47 2020 +0900
Branches: xr-actions-D9124
https://developer.blender.org/rB3e0acdfe94ad667ef5bd142ae0c84532e5b31823
Fix build error when disabling WITH_XR_OPENXR
===================================================================
M source/blender/draw/intern/draw_manager.c
===================================================================
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index a988fe9a622..b3e592384b4 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1447,6 +1447,7 @@ void DRW_draw_callbacks_post_scene(void)
GPU_depth_test(GPU_DEPTH_LESS_EQUAL);
}
+#ifdef WITH_XR_OPENXR
else if ((v3d->flag & V3D_XR_SESSION_SURFACE) != 0) {
DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
@@ -1478,6 +1479,7 @@ void DRW_draw_callbacks_post_scene(void)
GPU_depth_test(GPU_DEPTH_LESS_EQUAL);
}
+#endif
}
struct DRWTextStore *DRW_text_cache_ensure(void)
More information about the Bf-blender-cvs
mailing list