Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | |||||
| #include "GPU_draw.h" | #include "GPU_draw.h" | ||||
| #include "GPU_init_exit.h" | #include "GPU_init_exit.h" | ||||
| #include "BKE_sound.h" | #include "BKE_sound.h" | ||||
| #include "COM_compositor.h" | #include "COM_compositor.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DRW_engine.h" | |||||
| #ifdef WITH_OPENSUBDIV | #ifdef WITH_OPENSUBDIV | ||||
| # include "BKE_subsurf.h" | # include "BKE_subsurf.h" | ||||
| #endif | #endif | ||||
| static void wm_init_reports(bContext *C) | static void wm_init_reports(bContext *C) | ||||
| { | { | ||||
| ReportList *reports = CTX_wm_reports(C); | ReportList *reports = CTX_wm_reports(C); | ||||
| ▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | void WM_init(bContext *C, int argc, const char **argv) | ||||
| BLT_lang_set(NULL); | BLT_lang_set(NULL); | ||||
| if (!G.background) { | if (!G.background) { | ||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| /* sets 3D mouse deadzone */ | /* sets 3D mouse deadzone */ | ||||
| WM_ndof_deadzone_set(U.ndof_deadzone); | WM_ndof_deadzone_set(U.ndof_deadzone); | ||||
| #endif | #endif | ||||
| DRW_ogl_ctx_create(); | |||||
brecht: `DRW_opengl_context_destroy()` doesn't seem to be called anywhere. | |||||
| GPU_init(); | GPU_init(); | ||||
| GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP)); | GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP)); | ||||
| GPU_set_linear_mipmap(true); | GPU_set_linear_mipmap(true); | ||||
| 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); | ||||
| ▲ Show 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | |||||
| #ifdef WITH_OPENSUBDIV | #ifdef WITH_OPENSUBDIV | ||||
| BKE_subsurf_osd_cleanup(); | BKE_subsurf_osd_cleanup(); | ||||
| #endif | #endif | ||||
| GPU_global_buffer_pool_free(); | GPU_global_buffer_pool_free(); | ||||
| GPU_free_unused_buffers(); | GPU_free_unused_buffers(); | ||||
| GPU_exit(); | GPU_exit(); | ||||
| DRW_ogl_ctx_destroy(); /* Must be before ghost exit. */ | |||||
| } | } | ||||
| BKE_undo_reset(); | BKE_undo_reset(); | ||||
| ED_file_exit(); /* for fsmenu */ | ED_file_exit(); /* for fsmenu */ | ||||
| UI_exit(); | UI_exit(); | ||||
| BKE_blender_userdef_data_free(&U, false); | BKE_blender_userdef_data_free(&U, false); | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||
DRW_opengl_context_destroy() doesn't seem to be called anywhere.