Index: src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp b/src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp |
index ef8d1a2a358f3777815e8094365c8bd49958143a..f35c9ba910533100baa6cee57df432daf23c51d5 100644 |
--- a/src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp |
@@ -48,7 +48,9 @@ |
geomShaderSrc.append("void main() {\n"); |
geomShaderSrc.append("\tfor (int i = 0; i < 3; ++i) {\n" |
"\t\tgl_Position = gl_in[i].gl_Position;\n"); |
- geomShaderSrc.append("\t\tgl_PointSize = 1.0;\n"); |
+ if (fProgramBuilder->desc().header().fEmitsPointSize) { |
+ geomShaderSrc.append("\t\tgl_PointSize = 1.0;\n"); |
+ } |
SkASSERT(fInputs.count() == fOutputs.count()); |
for (int i = 0; i < fInputs.count(); ++i) { |
geomShaderSrc.appendf("\t\t%s = %s[i];\n", |