Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_init_exit.c
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | void GPU_init(void) | ||||
| if (!G.background) { | if (!G.background) { | ||||
| immInit(); | immInit(); | ||||
| } | } | ||||
| GPU_pbvh_fix_linking(); | GPU_pbvh_fix_linking(); | ||||
| } | } | ||||
| void GPU_exit(void) | void GPU_exit(void) | ||||
| { | { | ||||
| if (!G.background) { | if (!G.background) { | ||||
| immDestroy(); | immDestroy(); | ||||
| } | } | ||||
| gpu_batch_exit(); | gpu_batch_exit(); | ||||
| if (G.debug & G_DEBUG_GPU) | if (G.debug & G_DEBUG_GPU) | ||||
| gpu_debug_exit(); | gpu_debug_exit(); | ||||
| gpu_framebuffer_module_exit(); | gpu_framebuffer_module_exit(); | ||||
| gpu_codegen_exit(); | gpu_codegen_exit(); | ||||
| gpu_extensions_exit(); /* must come last */ | gpu_extensions_exit(); /* must come last */ | ||||
| initialized = false; | initialized = false; | ||||
| } | } | ||||
| bool GPU_is_initialized(void) | |||||
| { | |||||
| return initialized; | |||||
| } | |||||