Index: src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
diff --git a/src/gpu/glsl/GrGLSLGeometryProcessor.cpp b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
index b8951be551add38532e41b02f6e970dec80cef1c..f7dba820a0542ea8bd43603445f80d81f5d83b14 100644 |
--- a/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
+++ b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp |
@@ -19,6 +19,9 @@ void GrGLSLGeometryProcessor::emitCode(EmitArgs& args) { |
GrGPArgs gpArgs; |
this->onEmitCode(args, &gpArgs); |
vBuilder->transformToNormalizedDeviceSpace(gpArgs.fPositionVar); |
+ if (kVec2f_GrSLType == gpArgs.fPositionVar.getType()) { |
+ args.fVaryingHandler->setNoPerspective(); |
+ } |
} |
void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb, |