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

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_);