mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
VertexDecoder: Refactor away lowerbound/upperbound parameters
This commit is contained in:
1 parent
841e4c8564
commit
991d7bdfab
10 files changed
+47
-56
No files matched your search
@@ -180,7 +180,7 @@ void CachingFileLoader::SaveIntoCache(s64 pos, size_t bytes, Flags flags, bool r
|
||||
// While blocksMutex_ was unlocked, another thread may have read.
|
||||
// If so, free the one we just read.
|
||||
if (blocks_.find(cacheStartPos) == blocks_.end()) {
|
||||
blocks_[cacheStartPos] = BlockInfo(buf);
|
||||
blocks_[cacheStartPos] = BlockInfo{buf};
|
||||
} else {
|
||||
delete [] buf;
|
||||
}
|
||||
@@ -198,7 +198,7 @@ void CachingFileLoader::SaveIntoCache(s64 pos, size_t bytes, Flags flags, bool r
|
||||
}
|
||||
u8 *buf = new u8[BLOCK_SIZE];
|
||||
memcpy(buf, wholeRead + (i << BLOCK_SHIFT), BLOCK_SIZE);
|
||||
blocks_[cacheStartPos + i] = BlockInfo(buf);
|
||||
blocks_[cacheStartPos + i] = BlockInfo{buf};
|
||||
}
|
||||
delete[] wholeRead;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user