don't draw halo when halo-width is 0

669d891257
This commit is contained in:
Ansis Brammanis
2015-08-19 23:37:22 -04:00
committed by John Firebaugh
parent 60e9712916
commit af9396a678

View File

@@ -69,7 +69,7 @@ void Painter::renderSDF(SymbolBucket &bucket,
// We're drawing in the translucent pass which is bottom-to-top, so we need
// to draw the halo first.
if (styleProperties.halo_color[3] > 0.0f) {
if (styleProperties.halo_color[3] > 0.0f && styleProperties.halo_width > 0.0f) {
sdfShader.u_gamma = styleProperties.halo_blur * blurOffset / fontScale / sdfPx + gamma;
if (styleProperties.opacity < 1.0f) {