Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 573 Lines • ▼ Show 20 Lines | GHOST_WindowHandle ghostwin = GHOST_CreateWindow(g_system, | ||||
| win->sizex, | win->sizex, | ||||
| win->sizey, | win->sizey, | ||||
| (GHOST_TWindowState)win->windowstate, | (GHOST_TWindowState)win->windowstate, | ||||
| is_dialog, | is_dialog, | ||||
| GHOST_kDrawingContextTypeOpenGL, | GHOST_kDrawingContextTypeOpenGL, | ||||
| glSettings); | glSettings); | ||||
| if (ghostwin) { | if (ghostwin) { | ||||
| win->gpuctx = GPU_context_create(ghostwin); | win->gpuctx = GPU_context_create(ghostwin, NULL); | ||||
| /* needed so we can detect the graphics card below */ | /* needed so we can detect the graphics card below */ | ||||
| GPU_init(); | GPU_init(); | ||||
| /* Set window as drawable upon creation. Note this has already been | /* Set window as drawable upon creation. Note this has already been | ||||
| * it has already been activated by GHOST_CreateWindow. */ | * it has already been activated by GHOST_CreateWindow. */ | ||||
| wm_window_set_drawable(wm, win, false); | wm_window_set_drawable(wm, win, false); | ||||
| ▲ Show 20 Lines • Show All 1,791 Lines • Show Last 20 Lines | |||||