diff options
| author | 2020-08-14 08:16:03 -0400 | |
|---|---|---|
| committer | 2020-08-14 08:16:50 -0400 | |
| commit | 6b13d0882293976d8bf667e9145ddf2f5d59ea33 (patch) | |
| tree | 2ebafc9b2ddb3b883689bf643214dbbab9db7f09 /src | |
| parent | Merge pull request #4495 from lioncash/conv (diff) | |
| download | yuzu-6b13d0882293976d8bf667e9145ddf2f5d59ea33.tar.gz yuzu-6b13d0882293976d8bf667e9145ddf2f5d59ea33.tar.xz yuzu-6b13d0882293976d8bf667e9145ddf2f5d59ea33.zip | |
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).
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/shader/async_shaders.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp index b7f66d7ee..3f6d5a75b 100644 --- a/src/video_core/shader/async_shaders.cpp +++ b/src/video_core/shader/async_shaders.cpp | |||
| @@ -34,8 +34,8 @@ void AsyncShaders::AllocateWorkers(std::size_t num_workers) { | |||
| 34 | // Create workers | 34 | // Create workers |
| 35 | for (std::size_t i = 0; i < num_workers; i++) { | 35 | for (std::size_t i = 0; i < num_workers; i++) { |
| 36 | context_list.push_back(emu_window.CreateSharedContext()); | 36 | context_list.push_back(emu_window.CreateSharedContext()); |
| 37 | worker_threads.push_back(std::move( | 37 | worker_threads.push_back( |
| 38 | std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get()))); | 38 | std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get())); |
| 39 | } | 39 | } |
| 40 | } | 40 | } |
| 41 | 41 | ||