Gawain: initialize & destroy immediate mode

TODO: make this work better with multiple OpenGL contexts
This commit is contained in:
2016-08-07 01:30:45 -04:00
parent f27516839f
commit 6fea42d677

View File

@@ -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 */