diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-08 02:18:18 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-08 02:30:33 +0300 |
commit | cb7ea2ccfbb5d81083313c21d6b85a9c85db67d4 (patch) | |
tree | af7baa1dc3438da8f349bd38c2a65f9caad50bf3 /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | 1dd737759639c63d3279be774202585de778dac5 (diff) |
GPUBackend: Add new GPUBackend object to manage GL object allocations
This just set a global object responsible for allocating new objects
in a thread safe way without needing any GPUContext bound to this
thread.
This also introduce the GLContext which will contain all the GL related
functions for the current context.
# Conflicts:
# source/blender/gpu/intern/gpu_context.cc
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 85694dec9c8..03e84f098c0 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -121,6 +121,7 @@ #include "UI_interface.h" #include "UI_resources.h" +#include "GPU_context.h" #include "GPU_init_exit.h" #include "GPU_material.h" @@ -634,6 +635,8 @@ void WM_exit_ex(bContext *C, const bool do_python) RNA_exit(); /* should be after BPY_python_end so struct python slots are cleared */ + GPU_backend_exit(); + wm_ghost_exit(); CTX_free(C); |