| Index: src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
|
| diff --git a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
|
| index 7445676f5884c5bf4a01110b1579f0e761182a94..a1cc123f5b30538c35371c0e8418ed6259860e57 100644
|
| --- a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
|
| +++ b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
|
| @@ -87,7 +87,8 @@ void GrGLVertexShaderBuilder::bindProgramLocations(GrGLuint programId) {
|
| // We pull the current state of attributes off of drawstate's optimized state and bind them in
|
| // order. This assumes that the drawState has not changed since we called flushGraphicsState()
|
| // higher up in the stack.
|
| - SkAutoTUnref<GrOptDrawState> optState(fProgramBuilder->gpu()->drawState()->createOptState());
|
| + const GrDrawTargetCaps* caps = fProgramBuilder->gpu()->caps();
|
| + SkAutoTUnref<GrOptDrawState> optState(fProgramBuilder->gpu()->drawState()->createOptState(caps));
|
| const GrVertexAttrib* vaPtr = optState->getVertexAttribs();
|
| const int vaCount = optState->getVertexAttribCount();
|
|
|
|
|