summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-20 10:46:53 +0100
committerLioncash <mathew1800@gmail.com>2020-11-20 10:46:56 +0100
commit01db5cf20313125e2a88a6df1bb1696c0f08f346 (patch)
tree8a997d0dda619b2abf2ea8759178dcaf45e9ae83 /src/video_core/shader
parentasync_shaders: Simplify implementation of GetCompletedWork() (diff)
downloadyuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar.gz
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar.bz2
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar.lz
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar.xz
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.tar.zst
yuzu-01db5cf20313125e2a88a6df1bb1696c0f08f346.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/async_shaders.cpp4
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 85cda31c0..6920afdf2 100644
--- a/src/video_core/shader/async_shaders.cpp
+++ b/src/video_core/shader/async_shaders.cpp
@@ -43,8 +43,8 @@ void AsyncShaders::AllocateWorkers() {
// Create workers
for (std::size_t i = 0; i < num_workers; i++) {
context_list.push_back(emu_window.CreateSharedContext());
- worker_threads.push_back(
- std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get()));
+ worker_threads.emplace_back(&AsyncShaders::ShaderCompilerThread, this,
+ context_list[i].get());
}
}