Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_init_exit.c
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | void GPU_init(void) | ||||
| initialized = true; | initialized = true; | ||||
| gpu_extensions_init(); /* must come first */ | gpu_extensions_init(); /* must come first */ | ||||
| GPU_texture_orphans_init(); | GPU_texture_orphans_init(); | ||||
| GPU_material_orphans_init(); | GPU_material_orphans_init(); | ||||
| gpu_codegen_init(); | gpu_codegen_init(); | ||||
| gpu_framebuffer_module_init(); | |||||
| if (G.debug & G_DEBUG_GPU) | if (G.debug & G_DEBUG_GPU) | ||||
| gpu_debug_init(); | gpu_debug_init(); | ||||
| gpu_batch_init(); | gpu_batch_init(); | ||||
| if (!G.background) { | if (!G.background) { | ||||
| immInit(); | immInit(); | ||||
| Show All 13 Lines | void GPU_exit(void) | ||||
| gpu_batch_exit(); | gpu_batch_exit(); | ||||
| GPU_texture_orphans_exit(); | GPU_texture_orphans_exit(); | ||||
| GPU_material_orphans_exit(); | GPU_material_orphans_exit(); | ||||
| if (G.debug & G_DEBUG_GPU) | if (G.debug & G_DEBUG_GPU) | ||||
| gpu_debug_exit(); | gpu_debug_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; | ||||
| } | } | ||||