Fix T102306: buildtime shader compilation option fails under Wayland

libdecor (for window decorations) was crashing on exit with the shader
builder, avoid the crash by calling the "background" system creation
function which doesn't initialize window management under Wayland.
This commit is contained in:
Campbell Barton 2022-11-09 13:32:53 +11:00
parent 3fa6aacb91
commit 6fa05e2c29
Notes: blender-bot 2023-02-14 04:39:18 +01:00
Referenced by commit 801db0d429, Revert "Fix T102306: buildtime shader compilation option fails under Wayland"
Referenced by issue #102306, GHOST: Wayland: buildtime shader compilation option with Libdecor failling
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void ShaderBuilder::init()
break;
}
ghost_system_ = GHOST_CreateSystem();
ghost_system_ = GHOST_CreateSystemBackground();
ghost_context_ = GHOST_CreateOpenGLContext(ghost_system_, glSettings);
GHOST_ActivateOpenGLContext(ghost_context_);