Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 2,367 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, NULL); | ||||
| } | } | ||||
| 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 | |||||