diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-07 18:00:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-08 02:16:40 +0300 |
commit | 1dd737759639c63d3279be774202585de778dac5 (patch) | |
tree | b0b666aa69477ee7eb0cc2b5a379522bd75d1a62 /source/blender/gpu/intern/gpu_init_exit.c | |
parent | 0ccf3f89d2e2389d433d1ab682ad04310a9b19ae (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.
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index c5061ec9ba3..462a1d395c2 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -26,6 +26,7 @@ #include "BLI_sys_types.h" #include "GPU_batch.h" #include "GPU_buffers.h" +#include "GPU_context.h" #include "GPU_immediate.h" #include "intern/gpu_codegen.h" @@ -92,6 +93,8 @@ void GPU_exit(void) gpu_extensions_exit(); gpu_platform_exit(); /* must come last */ + GPU_backend_exit(); + initialized = false; } |