From 7e8c9c6f1675af40f7209b9326f7fa54c5a50026 Mon Sep 17 00:00:00 2001 From: heinezen Date: Tue, 7 Nov 2023 01:46:16 +0100 Subject: [PATCH] engine: Fix capture of argument in thread function. --- libopenage/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenage/engine/engine.cpp b/libopenage/engine/engine.cpp index 9af6d4fe891..fa2c251b4d7 100644 --- a/libopenage/engine/engine.cpp +++ b/libopenage/engine/engine.cpp @@ -55,7 +55,7 @@ Engine::Engine(mode mode, // if presenter is used, run it in a separate thread if (this->run_mode == mode::FULL) { - this->threads.emplace_back([&]() { + this->threads.emplace_back([&, debug_graphics]() { this->presenter->run(debug_graphics); // Make sure that the presenter gets destructed in the same thread