diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-07-01 19:56:26 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-07-01 20:04:54 +0300 |
commit | 5891e86420d9718670841f0282bac499c225ccd8 (patch) | |
tree | 25f42be5d588223b984cfa48e581b4922ead393a /source/blender/windowmanager/intern/wm_xr.c | |
parent | 2cedad990a975185fc8a24efbd827c7fd93f650d (diff) |
Cleanup GHOST_Xr types and functions
* Move GHOST_Xr types to GHOST_Types.h
* Add GHOST_XrPose. We'll have to pass around pose data at multiple
places.
* Don't require extra call to prepare session rendering, handle
everything through GHOST_XrSessionStart
* Naming
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index 0ed802bbb50..ccd8a94464c 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -164,7 +164,7 @@ static void wm_xr_draw_matrices_create(const GHOST_XrDrawViewInfo *draw_view, clip_start, clip_end); - ED_view3d_to_m4(r_view_mat, draw_view->pose.position, draw_view->pose.quat, 0.0f); + ED_view3d_to_m4(r_view_mat, draw_view->pose.position, draw_view->pose.orientation_quat, 0.0f); invert_m4(r_view_mat); } @@ -281,7 +281,6 @@ void wm_xr_session_toggle(struct GHOST_XrContext *xr_context) GHOST_XrDrawViewFunc(xr_context, wm_xr_draw_view); GHOST_XrSessionStart(xr_context); - GHOST_XrSessionRenderingPrepare(xr_context); } } |