Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-08-07 08:30:45 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-07 08:30:45 +0300
commit6fea42d67724606b120ff6922cf6de9f526c14fc (patch)
treeac2b3aa3f9830f28849200daf26c26d971db0dca /source/blender/gpu/intern/gpu_init_exit.c
parentf27516839faaba9c29d975492929b014cb98a019 (diff)
Gawain: initialize & destroy immediate mode
TODO: make this work better with multiple OpenGL contexts
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r--source/blender/gpu/intern/gpu_init_exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c
index c72c83b6b07..817756a3088 100644
--- a/source/blender/gpu/intern/gpu_init_exit.c
+++ b/source/blender/gpu/intern/gpu_init_exit.c
@@ -31,7 +31,7 @@
#include "BLI_sys_types.h"
#include "GPU_init_exit.h" /* interface */
-
+#include "GPU_immediate.h"
#include "BKE_global.h"
#include "intern/gpu_codegen.h"
@@ -59,14 +59,18 @@ void GPU_init(void)
if (G.debug & G_DEBUG_GPU)
gpu_debug_init();
+ immInit();
}
void GPU_exit(void)
{
+ immDestroy();
+
if (G.debug & G_DEBUG_GPU)
gpu_debug_exit();
+
gpu_codegen_exit();
gpu_extensions_exit(); /* must come last */