mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 14:45:07 +01:00
Allow mutation of input data by callback in CircularQueue::AppendTranform
This commit is contained in:
parent
7c9212743c
commit
054d32567d
@ -126,7 +126,7 @@ namespace skyline {
|
||||
template<typename TransformedType, typename Transformation>
|
||||
void AppendTranform(span <TransformedType> buffer, Transformation transformation) {
|
||||
std::unique_lock lock(productionMutex);
|
||||
for (const auto &item : buffer) {
|
||||
for (auto &item : buffer) {
|
||||
auto next{end + 1};
|
||||
next = (next == reinterpret_cast<Type *>(vector.end().base())) ? reinterpret_cast<Type *>(vector.begin().base()) : next;
|
||||
if (next == start) {
|
||||
|
Loading…
Reference in New Issue
Block a user