diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 04:18:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 05:15:50 +0300 |
commit | ccc512cc619dc9f0e6fd79270a7a96ece34d23b5 (patch) | |
tree | da728c4f3745fc352a5e223502ca8734c3c1f01b /source/blender/gpu/intern/gpu_init_exit.c | |
parent | ca8ffc523e3d08fc55c5cf000fa9fc3888950bf7 (diff) |
GPUImmediate: Make activation / deactivation implicit
This avoids unecessary complexity.
Also makes the GPUImmediate threadsafe by using a threadlocal imm variable.
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index 129a66994b1..0eb2fe57c28 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -54,10 +54,6 @@ void GPU_init(void) gpu_batch_init(); - if (!G.background) { - immInit(); - } - #ifndef GPU_STANDALONE gpu_pbvh_init(); #endif @@ -69,10 +65,6 @@ void GPU_exit(void) gpu_pbvh_exit(); #endif - if (!G.background) { - immDestroy(); - } - gpu_batch_exit(); gpu_material_library_exit(); |