Skip to content

Commit 7e8c9c6

Browse files
committed
engine: Fix capture of argument in thread function.
1 parent 33551f8 commit 7e8c9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libopenage/engine/engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Engine::Engine(mode mode,
5555

5656
// if presenter is used, run it in a separate thread
5757
if (this->run_mode == mode::FULL) {
58-
this->threads.emplace_back([&]() {
58+
this->threads.emplace_back([&, debug_graphics]() {
5959
this->presenter->run(debug_graphics);
6060

6161
// Make sure that the presenter gets destructed in the same thread

0 commit comments

Comments
 (0)