Index: src/gpu/GrBatch.cpp |
diff --git a/src/gpu/GrBatch.cpp b/src/gpu/GrBatch.cpp |
index 7d1c0ae25fb1c14b7a623187a56cc8a38301c69a..0655a4cd9db6f63e6ad7abc5134c8e56d2ece1f6 100644 |
--- a/src/gpu/GrBatch.cpp |
+++ b/src/gpu/GrBatch.cpp |
@@ -58,8 +58,8 @@ void* GrBatch::InstancedHelper::init(GrBatchTarget* batchTarget, GrPrimitiveType |
const GrVertexBuffer* vertexBuffer; |
int firstVertex; |
int vertexCount = verticesPerInstance * instancesToDraw; |
- void* vertices = batchTarget->vertexPool()->makeSpace(vertexStride, vertexCount, &vertexBuffer, |
- &firstVertex); |
+ void* vertices = batchTarget->makeVertSpace(vertexStride, vertexCount, |
+ &vertexBuffer, &firstVertex); |
if (!vertices) { |
SkDebugf("Vertices could not be allocated for instanced rendering."); |
return NULL; |