diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-08 02:38:07 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-02-11 02:39:17 +0300 |
commit | dfadb452549398bee5292ba6677aafe071f010b1 (patch) | |
tree | fe95a1b6c286a5196c6e63f9aa0c5ae56c0210e3 /source/blender/gpu/intern/gpu_init_exit.c | |
parent | 5b10a6bb8e0d2b494abe784f71436adc118f6972 (diff) |
OpenGL immediate mode: gluSphere replacement
Updated interface_draw.c to use the new sphere batch.
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index 817756a3088..7a6b1ff6c70 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -32,6 +32,7 @@ #include "BLI_sys_types.h" #include "GPU_init_exit.h" /* interface */ #include "GPU_immediate.h" +#include "GPU_batch.h" #include "BKE_global.h" #include "intern/gpu_codegen.h" @@ -59,6 +60,8 @@ void GPU_init(void) if (G.debug & G_DEBUG_GPU) gpu_debug_init(); + gpu_batch_init(); + immInit(); } @@ -68,6 +71,8 @@ void GPU_exit(void) { immDestroy(); + gpu_batch_exit(); + if (G.debug & G_DEBUG_GPU) gpu_debug_exit(); |