Browse Source

async_shaders: Resolve -Wpessimizing-move warning

Prevents pessimization of the move constructor (which thankfully didn't
actually happen in practice here, given std::thread isn't copyable).
Lioncash 6 years ago
parent
commit
6b13d08822
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/video_core/shader/async_shaders.cpp

+ 2 - 2
src/video_core/shader/async_shaders.cpp

@@ -34,8 +34,8 @@ void AsyncShaders::AllocateWorkers(std::size_t num_workers) {
     // Create workers
     // Create workers
     for (std::size_t i = 0; i < num_workers; i++) {
     for (std::size_t i = 0; i < num_workers; i++) {
         context_list.push_back(emu_window.CreateSharedContext());
         context_list.push_back(emu_window.CreateSharedContext());
-        worker_threads.push_back(std::move(
-            std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get())));
+        worker_threads.push_back(
+            std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get()));
     }
     }
 }
 }