diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-11-11 18:06:09 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-11-11 18:06:09 +0300 |
commit | 80f0d9e29dcb282935995ef1c87c9c7097f851ff (patch) | |
tree | c365a2038e3c50969f971d98fdcf518385a44c0c /source/blender/draw/intern/draw_manager.c | |
parent | 3a3947bcf83228e1e7977556baff3de02b16ea07 (diff) |
Add support for XrSession (untested).temp-xr-virtual-camera-experiment
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 4fcfec833eb..5e7be9c7fb7 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1807,6 +1807,7 @@ void DRW_draw_render_loop_offscreen(struct Depsgraph *depsgraph, const bool is_image_render, const bool draw_background, const bool do_color_management, + const bool is_virtual_camera, GPUOffScreen *ofs, GPUViewport *viewport) { @@ -1830,6 +1831,7 @@ void DRW_draw_render_loop_offscreen(struct Depsgraph *depsgraph, drw_state_prepare_clean_for_draw(&DST); DST.options.is_image_render = is_image_render; DST.options.draw_background = draw_background; + DST.options.is_virtual_camera = is_virtual_camera; DRW_draw_render_loop_ex(depsgraph, engine_type, region, v3d, render_viewport, NULL); if (draw_background) { @@ -2920,6 +2922,11 @@ bool DRW_state_is_opengl_render(void) return DST.options.is_image_render && !DST.options.is_scene_render; } +bool DRW_state_is_virtual_camera(void) +{ + return DST.options.is_virtual_camera; +} + bool DRW_state_is_playback(void) { if (DST.draw_ctx.evil_C != NULL) { |