Index: src/gpu/gl/GrGLProgram.cpp |
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp |
index 2f6b784b40cfb1e179aa7791abb59688fa4edb55..8ae581c21eb7239d7d19e553fb8ff276cfb75fc8 100644 |
--- a/src/gpu/gl/GrGLProgram.cpp |
+++ b/src/gpu/gl/GrGLProgram.cpp |
@@ -206,6 +206,7 @@ void GrGLNvprProgram::onSetRenderTargetState(const GrPrimitiveProcessor& primPro |
const GrRenderTarget* rt = pipeline.getRenderTarget(); |
SkISize size; |
size.set(rt->width(), rt->height()); |
- fGpu->glPathRendering()->setProjectionMatrix(primProc.viewMatrix(), |
+ const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); |
+ fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), |
size, rt->origin()); |
} |