[Bf-blender-cvs] [03ff2a8dd5f] soc-2019-openxr: Fix compile error with USE_FORCE_WINDOWED_SESSION enabled
Julian Eisel
noreply at git.blender.org
Wed Jul 17 11:29:45 CEST 2019
Commit: 03ff2a8dd5fe7495063eb298694d5ad8cddc34c6
Author: Julian Eisel
Date: Wed Jul 17 11:02:31 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rB03ff2a8dd5fe7495063eb298694d5ad8cddc34c6
Fix compile error with USE_FORCE_WINDOWED_SESSION enabled
At least get it to compile, this is still kinda broken though.
===================================================================
M source/blender/windowmanager/intern/wm_xr.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index 85c99c7897b..f32d60bee46 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -57,6 +57,10 @@
//# define USE_FORCE_WINDOWED_SESSION
#endif
+#ifdef USE_FORCE_WINDOWED_SESSION
+static void xr_session_window_create(bContext *C);
+#endif
+
static wmSurface *g_xr_surface = NULL;
typedef struct {
@@ -370,6 +374,13 @@ void wm_xr_session_toggle(bContext *C, void *xr_context_ptr)
}
#if defined(USE_FORCE_WINDOWED_SESSION)
+
+# include "BLI_rect.h"
+# include "DNA_workspace_types.h"
+# include "BKE_workspace.h"
+# include "ED_screen.h"
+# include "BLI_string.h"
+
static void xr_session_window_create(bContext *C)
{
Main *bmain = CTX_data_main(C);
More information about the Bf-blender-cvs
mailing list