diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h index 3c5eea5a3f..038e3bc242 100644 --- a/src/gpu/GrResourceCache2.h +++ b/src/gpu/GrResourceCache2.h @@ -167,7 +167,7 @@ private: /// @} void purgeAsNeeded() { - if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes < fMaxBytes)) { + if (fPurging || (fBudgetedCount <= fMaxCount && fBudgetedBytes <= fMaxBytes)) { return; } this->internalPurgeAsNeeded();