diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp index 86dd8aa7a5..f3d6eafb2e 100644 --- a/src/gpu/GrAtlasTextContext.cpp +++ b/src/gpu/GrAtlasTextContext.cpp @@ -1930,7 +1930,7 @@ private: int newAllocSize = GrNextPow2(newGeoCount); int currAllocSize = SkTMax(kMinGeometryAllocated, GrNextPow2(fGeoCount)); - if (newAllocSize > currAllocSize) { + if (newGeoCount > currAllocSize) { fGeoData.realloc(newAllocSize); }