Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader_builder.cc
| Show All 39 Lines | |||||
| { | { | ||||
| CLG_init(); | CLG_init(); | ||||
| GHOST_GLSettings glSettings = {0}; | GHOST_GLSettings glSettings = {0}; | ||||
| ghost_system_ = GHOST_CreateSystem(); | ghost_system_ = GHOST_CreateSystem(); | ||||
| ghost_context_ = GHOST_CreateOpenGLContext(ghost_system_, glSettings); | ghost_context_ = GHOST_CreateOpenGLContext(ghost_system_, glSettings); | ||||
| GHOST_ActivateOpenGLContext(ghost_context_); | GHOST_ActivateOpenGLContext(ghost_context_); | ||||
| gpu_context_ = GPU_context_create(nullptr); | gpu_context_ = GPU_context_create(nullptr, ghost_context_); | ||||
| GPU_init(); | GPU_init(); | ||||
| } | } | ||||
| void ShaderBuilder::exit() | void ShaderBuilder::exit() | ||||
| { | { | ||||
| GPU_exit(); | GPU_exit(); | ||||
| GPU_context_discard(gpu_context_); | GPU_context_discard(gpu_context_); | ||||
| Show All 29 Lines | |||||