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_opengl_context_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 417 Lines • Show Last 20 Lines | |||||
DRW_opengl_context_destroy() doesn't seem to be called anywhere.