Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** | /** | ||||
| * Since we cannot know in advance if we will require the draw manager | * Since we cannot know in advance if we will require the draw manager | ||||
| * context when starting blender in background mode (specially true with | * context when starting blender in background mode (specially true with | ||||
| * scripts) we deferre the ghost initialization the most as possible | * scripts) we deferre the ghost initialization the most as possible | ||||
| * so that it does not break anything that can run in headless mode (as in | * so that it does not break anything that can run in headless mode (as in | ||||
| * without display server attached). | * without display server attached). | ||||
| **/ | */ | ||||
| static bool opengl_is_init = false; | static bool opengl_is_init = false; | ||||
| void WM_init_opengl(Main *bmain) | void WM_init_opengl(Main *bmain) | ||||
| { | { | ||||
| /* must be called only once */ | /* must be called only once */ | ||||
| BLI_assert(opengl_is_init == false); | BLI_assert(opengl_is_init == false); | ||||
| if (G.background) { | if (G.background) { | ||||
| ▲ Show 20 Lines • Show All 445 Lines • Show Last 20 Lines | |||||