Fix silly mistake in allocating geoms in TextBatch
TBR=joshualitt@google.com Review URL: https://codereview.chromium.org/1259103004
This commit is contained in:
parent
e0effd6080
commit
16ed6adb65
@ -1930,7 +1930,7 @@ private:
|
||||
int newAllocSize = GrNextPow2(newGeoCount);
|
||||
int currAllocSize = SkTMax<int>(kMinGeometryAllocated, GrNextPow2(fGeoCount));
|
||||
|
||||
if (newAllocSize > currAllocSize) {
|
||||
if (newGeoCount > currAllocSize) {
|
||||
fGeoData.realloc(newAllocSize);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user