mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 02:35:41 +00:00
Small bug: don't allocate more memory than we have to.
This commit is contained in:
parent
ba36ca34fd
commit
a57c40005c
|
@ -304,10 +304,10 @@ namespace PVRTCC {
|
|||
|
||||
// First, extract all of the block information...
|
||||
std::vector<Block> blocks;
|
||||
blocks.reserve(w * h);
|
||||
|
||||
const uint32 blocksW = bTwoBitMode? (w / 8) : (w / 4);
|
||||
const uint32 blocksH = h / 4;
|
||||
blocks.reserve(blocksW * blocksH);
|
||||
|
||||
for(uint32 j = 0; j < blocksH; j++) {
|
||||
for(uint32 i = 0; i < blocksW; i++) {
|
||||
|
|
Loading…
Reference in a new issue