Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "RNA_enum_types.h" | #include "RNA_enum_types.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "wm.h" | #include "wm.h" | ||||
| #include "wm_draw.h" | #include "wm_draw.h" | ||||
| #include "wm_files.h" | #include "wm_files.h" | ||||
| #include "wm_platform_support.h" | |||||
| #include "wm_window.h" | #include "wm_window.h" | ||||
| #include "wm_event_system.h" | #include "wm_event_system.h" | ||||
| #include "ED_anim_api.h" | #include "ED_anim_api.h" | ||||
| #include "ED_render.h" | #include "ED_render.h" | ||||
| #include "ED_scene.h" | #include "ED_scene.h" | ||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "ED_fileselect.h" | #include "ED_fileselect.h" | ||||
| ▲ Show 20 Lines • Show All 2,296 Lines • ▼ Show 20 Lines | |||||
| void *WM_opengl_context_create(void) | void *WM_opengl_context_create(void) | ||||
| { | { | ||||
| /* On Windows there is a problem creating contexts that share lists | /* On Windows there is a problem creating contexts that share lists | ||||
| * from one context that is current in another thread. | * from one context that is current in another thread. | ||||
| * So we should call this function only on the main thread. | * So we should call this function only on the main thread. | ||||
| */ | */ | ||||
| BLI_assert(BLI_thread_is_main()); | BLI_assert(BLI_thread_is_main()); | ||||
| BLI_assert(GPU_framebuffer_active_get() == NULL); | BLI_assert(GPU_framebuffer_active_get() == NULL); | ||||
| return GHOST_CreateOpenGLContext(g_system); | return GHOST_CreateOpenGLContext(g_system, wm_platform_support_ghost_callback); | ||||
| } | } | ||||
| void WM_opengl_context_dispose(void *context) | void WM_opengl_context_dispose(void *context) | ||||
| { | { | ||||
| BLI_assert(GPU_framebuffer_active_get() == NULL); | BLI_assert(GPU_framebuffer_active_get() == NULL); | ||||
| GHOST_DisposeOpenGLContext(g_system, (GHOST_ContextHandle)context); | GHOST_DisposeOpenGLContext(g_system, (GHOST_ContextHandle)context); | ||||
| } | } | ||||
| Show All 13 Lines | |||||