diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_XrContext.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_XrContext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp index a757aa9a555..2cd5b2ca8c8 100644 --- a/intern/ghost/intern/GHOST_XrContext.cpp +++ b/intern/ghost/intern/GHOST_XrContext.cpp @@ -512,6 +512,13 @@ void GHOST_XrContext::setDrawViewFunc(GHOST_XrDrawViewFn draw_view_fn) m_custom_funcs.draw_view_fn = draw_view_fn; } +bool GHOST_XrContext::needsUpsideDownDrawing() const +{ + /* Must only be called after the session was started */ + assert(m_session); + return m_session->needsUpsideDownDrawing(); +} + /** \} */ /* Public Accessors and Mutators */ /* -------------------------------------------------------------------- */ |