diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-25 18:43:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-25 18:43:18 +0300 |
commit | 46bfdb48a19335d7db2114c697ccca05cb0011af (patch) | |
tree | 9ab7beb71732c0c01558f0b2a1101e260b5012b4 /source/blender/windowmanager/WM_api.h | |
parent | 56fbdd790899301b4baf290ae693ceb9a4d5d467 (diff) |
WM: Add GHOST lazy init for background mode.
This allows for background rendering with EEVEE and other opengl render
engine.
I've only tested it on Linux for the moment so I can't say about other
platforms.
We do lazy init because we cannot assume we will need Ghost for rendering
before having parsed all arguments and we cannot know if a script will
trigger rendering. This is also because it currently does not work without
any display server (blender will crash).
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 652cdac6315..de5ce6d211d 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -93,6 +93,7 @@ void WM_main (struct bContext *C) ATTR_NORETURN; void WM_init_splash (struct bContext *C); +void WM_init_opengl (void); void WM_check (struct bContext *C); |