Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Context not available. | |||||
| #include "GPU_buffers.h" | #include "GPU_buffers.h" | ||||
| #include "GPU_extensions.h" | #include "GPU_extensions.h" | ||||
| #include "GPU_draw.h" | #include "GPU_draw.h" | ||||
| #include "GPU_init_exit.h" | |||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| #include "BKE_sound.h" | #include "BKE_sound.h" | ||||
| Context not available. | |||||
| wm_init_reports(C); /* reports cant be initialized before the wm */ | wm_init_reports(C); /* reports cant be initialized before the wm */ | ||||
| if (!G.background) { | if (!G.background) { | ||||
| GPU_init(); | GPU_extensions_init(); | ||||
| GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP)); | GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP)); | ||||
| GPU_set_anisotropic(U.anisotropic_filter); | GPU_set_anisotropic(U.anisotropic_filter); | ||||
| GPU_set_gpu_mipmapping(U.use_gpu_mipmap); | GPU_set_gpu_mipmapping(U.use_gpu_mipmap); | ||||
| Context not available. | |||||
| if (!G.background) { | if (!G.background) { | ||||
| GPU_global_buffer_pool_free(); | GPU_global_buffer_pool_free(); | ||||
| GPU_free_unused_buffers(); | GPU_free_unused_buffers(); | ||||
| GPU_extensions_exit(); | |||||
| GPU_exit(); | |||||
| } | } | ||||
| BKE_reset_undo(); | BKE_reset_undo(); | ||||
| Context not available. | |||||