[Bf-blender-cvs] [6fea42d] blender2.8: Gawain: initialize & destroy immediate mode
Mike Erwin
noreply at git.blender.org
Sun Aug 7 07:37:48 CEST 2016
Commit: 6fea42d67724606b120ff6922cf6de9f526c14fc
Author: Mike Erwin
Date: Sun Aug 7 01:30:45 2016 -0400
Branches: blender2.8
https://developer.blender.org/rB6fea42d67724606b120ff6922cf6de9f526c14fc
Gawain: initialize & destroy immediate mode
TODO: make this work better with multiple OpenGL contexts
===================================================================
M source/blender/gpu/intern/gpu_init_exit.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c
index c72c83b..817756a 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 */
More information about the Bf-blender-cvs
mailing list