Index: src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp b/src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp |
index 4931e0f256ec720f61edaaa1145ba49512b2b09e..f8302b38fea8e485a1208089c29c47c23497a7f9 100644 |
--- a/src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp |
@@ -46,8 +46,10 @@ void GrGLSLVertexBuilder::transformToNormalizedDeviceSpace(const GrShaderVar& po |
posVar.c_str(), fRtAdjustName, fRtAdjustName); |
} |
// We could have the GrGeometryProcessor do this, but its just easier to have it performed |
- // here. If we ever need to set variable pointsize, then we can reinvestigate |
- this->codeAppend("gl_PointSize = 1.0;"); |
+ // here. If we ever need to set variable pointsize, then we can reinvestigate. |
+ if (this->getProgramBuilder()->desc().header().fHasPointSize) { |
+ this->codeAppend("gl_PointSize = 1.0;"); |
+ } |
} |
void GrGLSLVertexBuilder::onFinalize() { |