Skip to content

Commit

Permalink
engine: Fix capture of argument in thread function.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Nov 7, 2023
1 parent 33551f8 commit 7e8c9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopenage/engine/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e8c9c6

Please sign in to comment.