Index: src/gpu/gl/GrGLPathRendering.cpp |
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp |
index 93f892d3b36c8d31701a27d88c8f1ab006a1164e..e46f33635183119e9f042e374d57e921ec8833e0 100644 |
--- a/src/gpu/gl/GrGLPathRendering.cpp |
+++ b/src/gpu/gl/GrGLPathRendering.cpp |
@@ -88,7 +88,8 @@ void GrGLPathRendering::resetContext() { |
fHWProjectionMatrixState.invalidate(); |
// we don't use the model view matrix. |
GrGLenum matrixMode = |
- fGpu->glStandard() == kGLES_GrGLStandard ? GR_GL_PATH_MODELVIEW : GR_GL_MODELVIEW; |
+ fGpu->glCaps().nvprSupport() == GrGLCaps::kNormal_NvprSupport ? GR_GL_PATH_MODELVIEW : |
+ GR_GL_MODELVIEW; |
GL_CALL(MatrixLoadIdentity(matrixMode)); |
if (!caps().fragmentInputGenSupport) { |
@@ -356,7 +357,8 @@ void GrGLPathRendering::setProjectionMatrix(const SkMatrix& matrix, |
GrGLfloat glMatrix[4 * 4]; |
fHWProjectionMatrixState.getRTAdjustedGLMatrix<4>(glMatrix); |
GrGLenum matrixMode = |
- fGpu->glStandard() == kGLES_GrGLStandard ? GR_GL_PATH_PROJECTION : GR_GL_PROJECTION; |
+ fGpu->glCaps().nvprSupport() == GrGLCaps::kNormal_NvprSupport ? GR_GL_PATH_PROJECTION : |
+ GR_GL_PROJECTION; |
GL_CALL(MatrixLoadf(matrixMode, glMatrix)); |
} |