Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index b19676adb9ba53cc9cefbf7f17f6a55130c35cb4..beef93e96b7b25b09cc4d6587dac701194ac0d97 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -284,7 +284,7 @@ bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstC |
void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
- GrGLsizei stride = static_cast<GrGLsizei>(this->getDrawState().getVertexSize()); |
+ GrGLsizei stride = static_cast<GrGLsizei>(this->getDrawState().getVertexStride()); |
size_t vertexOffsetInBytes = stride * info.startVertex(); |