diff options
author | Lioncash <mathew1800@gmail.com> | 2020-11-20 10:44:42 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-11-20 10:44:44 +0100 |
commit | ba3916fc67bac5f9cb40ebc91fccca065e877174 (patch) | |
tree | 3967be53e9f380ba236843fe576754069666a2f7 /src | |
parent | async_shaders: Simplify moving data into the pending queue (diff) | |
download | yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar.gz yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar.bz2 yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar.lz yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar.xz yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.tar.zst yuzu-ba3916fc67bac5f9cb40ebc91fccca065e877174.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/shader/async_shaders.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp index c6bd75b7c..85cda31c0 100644 --- a/src/video_core/shader/async_shaders.cpp +++ b/src/video_core/shader/async_shaders.cpp @@ -106,8 +106,7 @@ std::vector<AsyncShaders::Result> AsyncShaders::GetCompletedWork() { std::vector<Result> results; { std::unique_lock lock{completed_mutex}; - results.assign(std::make_move_iterator(finished_work.begin()), - std::make_move_iterator(finished_work.end())); + results = std::move(finished_work); finished_work.clear(); } return results; |